-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly detected locale #193
Comments
Same issue. in method getLocale
Now the condition of if is always false. Because now symphony translator if ((bool) $this->locale) is false returns \Locale::getDefault() or 'en' ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
After upgrading to nette v.3.1.10 and translation v.3.0.6 I have a problem that locale is always resolved to "en", regardless of resolvers results.
Here is my config.neon:
Here is my RouterFactory:
My browser locale is 'fr', but the website is opened in English, and here is what I see in the tracy debugger:
Order of locale resolvers and final locale for each request
Even when I try force French locale by opening my website like this: https://example.com/fr, it's still opened in English, and here is what I see in the tracy debugger:
Order of locale resolvers and final locale for each request
Before upgrade everything worked good. Maybe now I need to change something in the code, but I don't know what. Please help :)
The text was updated successfully, but these errors were encountered: