Skip to content
Snippets Groups Projects
Commit f36821b9 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Also set the "locale" option for the keycloak login

With keycloak 9.0 the kcLocale option is gone and the locale selection has been reworked.
If I understand things correctly using the "locale" option should start working with 9.0,
so pass both for now.

See https://www.keycloak.org/docs/latest/server_admin/#_user_locale_selection

Fixes #8
parent 3fdd0e08
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,8 @@ export class KeycloakWrapper extends EventTarget { ...@@ -146,7 +146,8 @@ export class KeycloakWrapper extends EventTarget {
if (!this._keycloak.authenticated) { if (!this._keycloak.authenticated) {
await this._keycloak.login({ await this._keycloak.login({
kcLocale: language, kcLocale: language, // Keycloak < 9.0
locale: language,
}); });
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment