Skip to content

Translation file not get correct locale in 4.0.3  #2921

Description

@nicojmb

Hi, i just update to 4.0.3 and get translation problems with multiple locales.

I debug the code and i see in RouterCollection Class a new method called "LocalizeRoute", this method check current locale in "Language" class and must be check in "Request".

The problem is in this line:

return strtr($route, ['{locale}' => Services::language()->getLocale()]);

If change to this, works fine:

return strtr($route, ['{locale}' => Services::request()->getLocale()]);

Regards!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions