Using localization #88
-
Hey everyone! I haven't been able to change localization for the login page. I can see that there is i18next-browser-languageDetector used, but I haven't been able to change the localization using any of the methods provided there (neither query string nor local storage worked). Only changing the browser language led to localization change. Is there any way I can programmatically pass the localization value when redirecting to the login page? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hail, @jegork 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Farewell! |
Beta Was this translation helpful? Give feedback.
-
The authentication pages are generated by the Python server and are not handled by the React frontend, so i18next won't be used in this context. Currently, the locale selection is handled by asgi-babel which parses the It's simple, but maybe it doesn't cover every use cases. Would you mind elaborating on how would you like to set the language for the login pages? |
Beta Was this translation helpful? Give feedback.
-
Hi @jegork 👋 I just wished to inform you that with the latest version of Fief, you can add the |
Beta Was this translation helpful? Give feedback.
Hi @jegork 👋
I just wished to inform you that with the latest version of Fief, you can add the
lang
parameter when generating the authorization URL so you can manually set the user locale on auth pages. Our official clients have been updated to handle this parameter: