New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected locale is not taking into accoun in keycloak.v3 account
theme
#24082
Labels
Comments
Merged
edewit
added a commit
to edewit/keycloak
that referenced
this issue
Nov 14, 2023
fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit
added a commit
to edewit/keycloak
that referenced
this issue
Nov 21, 2023
fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
jonkoops
pushed a commit
to edewit/keycloak
that referenced
this issue
Nov 23, 2023
fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit
added a commit
that referenced
this issue
Dec 12, 2023
* Switch locale fixes: #24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * PR comments Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
srose
pushed a commit
to srose/keycloak
that referenced
this issue
Dec 20, 2023
* Switch locale fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * PR comments Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
kamontat
pushed a commit
to kamontat/keycloak
that referenced
this issue
Jan 20, 2024
* Switch locale fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * PR comments Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> Signed-off-by: Kamontat Chantrachirathumrong <14089557+kamontat@users.noreply.github.com>
ShefeeqPM
pushed a commit
to ShefeeqPM/keycloak
that referenced
this issue
Jan 27, 2024
* Switch locale fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * PR comments Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
ahus1
pushed a commit
to ahus1/keycloak
that referenced
this issue
Mar 22, 2024
* Switch locale fixes: keycloak#24082 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * PR comments Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Before reporting an issue
Area
account/ui
Describe the bug
When
account3
feature and thedeclarative-user-profile
feature is enabled, thekeycloak.v3 account
theme is configured and alocale
attribute is created, if the user changes the "select locale" field, the UI remains in English instead of being rendered in the selected language as it is when using thekeycloak.v2 account
theme.Version
22.0.4
Expected behavior
The UI pages must be rendered in the selected user locale.
Actual behavior
Always the page is rendered in English
How to Reproduce?
declarative-user-profile
andaccount3
enabled.keycloak.v3
asAccount theme
for the selected Realm.User attributes
in the selected realm.Anything else?
Reviewing the code a possible solution could be:
18n
: https://github.com/keycloak/keycloak/blob/main/js/apps/account-ui/src/i18n.ts#L28With these changes, when the UI is loaded the HTML language is set as the user locale. Then this value is fetched by the i18next to load the corresponding files. If a user changes the default locale, then the UI is reloaded to detect the changes.
Another option could be use the
KEYCLOAK_LOCALE
cookie, but it is marked ashttpOnly
so we can't use it.The text was updated successfully, but these errors were encountered: