Keycloak 18 add login theme translation

801 Views Asked by At

I was able to create my own Keycloak 18.0.2 login theme called custom. Now, I'd like to add Ukrainian translation for the login screen. I created the following file:

/keycloak/themes/custom/login/messages/messages_uk.properties 

but unable to find uk locale in Keycloak admin console.

What am I doing wrong and how do I correctly add new translation properties for the Keycloak login theme?

1

There are 1 best solutions below

6
Mykola Yakovenko On BEST ANSWER

We have the same problem. The uk tag is not visible.

Just type uk, press Enter and Save changes.

Also add this:

locale_uk=\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430

to login/messages/messages_en.properties file.

After all this changes the Ukrainian language will be available on login form.


Another way to fix this - add 'uk' to this array:

var supportedLocales = ['uk'];

in file <your_theme>/admin/resources/js/controllers/realm.js:549