The logic to set the users locale is not ideal. There's a few issues here:
- If locale is set through Account REST API it can be overwritten by KEYCLOAK_LOCALE (
- If multiple users use the same machine the first user to log in results in a KEYCLOAK_COOKIE which then can overwrite the seconds users locale stored in the user account (
- KEYCLOAK_COOKIE can override locale from ui_locales parameter. ui_locales should take presidence over the cookie.
The logic for the locale should be well documented.