You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought, that the locale given here is just the default (or fallback) locale, but this is not the case.
And there is not documented way, of setting the locale after Routing has been initialized. I tried calling Routing.setLocale manually, but the routes were loaded after that by webpack so my setting was overridden.
It would be nice, if the current locale can be read from html-tag attributes (like the symfony ux translator bundle: https://github.com/symfony/ux/blob/412da630824772f1fcb4d363b24b243a7165c4a0/src/Translator/assets/src/translator.ts#L47)
The text was updated successfully, but these errors were encountered:
We have international routes enabled in our project and we use FosJsRouting with encore like this:
I thought, that the locale given here is just the default (or fallback) locale, but this is not the case.
And there is not documented way, of setting the locale after Routing has been initialized. I tried calling Routing.setLocale manually, but the routes were loaded after that by webpack so my setting was overridden.
It would be nice, if the current locale can be read from html-tag attributes (like the symfony ux translator bundle: https://github.com/symfony/ux/blob/412da630824772f1fcb4d363b24b243a7165c4a0/src/Translator/assets/src/translator.ts#L47)
The text was updated successfully, but these errors were encountered: