Open roher-roher opened 1 year ago
Same issue. I found this commit: https://github.com/symfony/translation/commit/c1cca3eb086bb62d98890631ef6bbc65ce913dd1 which is probably the source of trouble.
in method getLocale
public function getLocale()
{
if (empty(parent::getLocale())) {
$this->setLocale($this->localeResolver->resolve($this));
}
return parent::getLocale();
}
Now the condition of if is always false. Because now symphony translator if ((bool) $this->locale) is false returns \Locale::getDefault() or 'en' ;
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 :)