How to add new supported locale?

1,171 views
Skip to first unread message

Björn Eickvonder

unread,
Nov 22, 2022, 6:50:02 AM11/22/22
to Keycloak User
Hi,

I have my own theme for the login process and also have custom translations in there. Now I want to add ro (Romania) as a translation but I cannot select that in the admin console as one of the supported locales.
How do I extend this list of supported locales?

Jon Koops

unread,
Nov 22, 2022, 8:35:26 AM11/22/22
to Björn Eickvonder, Keycloak User
Hi Björn,

Could you log this with some steps to reproduce as an issue in our issue tracker? It will make it easier for us to triage and resolve the issue.

Jon

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/45e04879-846f-4028-a036-780a54440120n%40googlegroups.com.

Björn Eickvonder

unread,
Nov 22, 2022, 9:09:04 AM11/22/22
to Keycloak User
Ok, but I probably only miss something, don't think this is an issue. So if you can give me any advice how to add a brand new language, that would be great.

Björn

Björn Eickvonder

unread,
Nov 23, 2022, 6:00:16 PM11/23/22
to Keycloak User
I found what had been missing...

I haven't switched all email, login and account to my custom theme.

Jon Koops

unread,
Nov 24, 2022, 7:24:04 AM11/24/22
to Björn Eickvonder, Keycloak User
Interesting, I do wonder if that is how we should have it behave in this case.

Tobias Häfner

unread,
Nov 25, 2022, 2:33:00 AM11/25/22
to Keycloak User
Hi Björn,

what also worked for me is to overwrite the files in the directory themes\base\login\themes.properties
and put your locale there:

locales=en,ro

Do this also for login, email, admin and account where  the same files exists.

I have implemented it by overwriting the files in the keycloak startup process.

I know the solution is  dirty but it works but I don't know if this files are accessible in newer keycloak versions.


Best regards
Tobias
Reply all
Reply to author
Forward
Message has been deleted
0 new messages