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
Bug with subtag in i18n middleware #906
Comments
Hey can you provide a small GitHub example please? |
I hope, codesandbox is fine. |
@sebilasse thanks for the example, we've identified the issue in i18n and will look to raise a fix and back-port for 7 over the next few days. Just a note that the locale needs to be |
Hey @agubler just btw |
@sebilasse please can you try |
It worked. Sorry for replying late. |
Thanks for letting us know @sebilasse |
Bug
/core/middleware/i18n.ts :
If I have bundles like
'en'
and'de'
but set a more specific locale, the middleware does nothing.Assume the above locales with 'en' as the default bundle and
Code
i18n.set({locale: 'de-de'})
Expected behavior:
Switch language to
'de'
Actual behavior:
Nothing happens
The text was updated successfully, but these errors were encountered: