Adding a Language in a Keycloak Server
Last updated
Last updated
In the Keycloak Admin Console you can enable localization by selecting a set of language that you wish to support. After that you should be able to select a language in your Login.
The language that you want to support isn't in the default set? You can add support for it with Keycloakify. See how.
You shouldn't rely on the language select to let your users select their language.
Infact, I encourage you to hide or remove it.
What you should do instead is, when redirecting your user from your application to your Keycloak login page, add an extra query param to let Keycloak know in what language the page should be rendered.
The parameter to add is ?ui_locales=fr (Example if we want the UI to be in French).
See oidc-spa documentation for more info on how to provide this parameter. (You can do the same if you use keycloak-js or NextAuth)