[keycloak-user] Initialize keycloak with locale in i18n

Stan Silvert ssilvert at redhat.com
Tue Feb 12 14:42:01 EST 2019

This might help:

But one problem is that you should be initializing Keycloak before you 
initialize React.  That means you won't have a chance for i18next to 
detect the locale before the login screen is shown.

If the default LocaleSelectionProvider is not what you want then I 
suggest that you find out the algorithm i18next is using and build that 
into your own LocaleSelectionProvider.


On 2/12/2019 12:42 PM, Al_Mahdi wrote:
> In our application (React application) we have a business requirement to show
> the login page with the default language detected by i18next, I didn't find
> how to set the locale in keycloak init method, however, i used login method
> where the locale can be set. but, using the login method, i had redirection
> loop issue.
> - Is there any difference between logging in using init or login methods?
> - Are there clear or clean ways where i can send the locale to keycloak in
> order to show the page in the appropriate language?
> Thanks.
> --
> Sent from: http://keycloak-user.88327.x6.nabble.com/
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user

More information about the keycloak-user mailing list