1
votes

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 ?

1

1 Answers

0
votes

You have to enable intl in your php.ini : intl.default_locale = fr.

And install intl for php : sudo apt-get install php7.0-intl