When I call \Locale::getDefault()
In my Symfony2 application i get always 'en'
when on server.
In dev server is always ok.
In any case $request->getLocale()
and $request->getDefaultLocale()
return what is expected, i.e. 'fr'
, 'en'
, 'es'
depending on the route.
How can I influence \Locale
over the application depending on my Request
?