Add locale picker to urlTemplate
Security fix for locale selection
Add preg_match to validate input
Fix typo