Problem: There is no information in the keycloak documentation how to get locale information (which language was selected in the locale selector in the keycloak login page) in your app, after successfully logging in.
There is one place in the docs about localization (https://www.keycloak.org/docs/latest/server_admin/#enabling-internationalization) but it is not what i needed.
PS. I'm using keycloak-js lib.
Solution: 1) In the place where you init your app:
And in that tokenParsed there is field named "locale"
Here is how to get parsed token in keycloak-js: