I am implementing a custom login page for keycloak (version 2.5), by following this guide. I added my own custom styling, now I am trying to add the Dutch locale. Currently no Dutch locale is provided, so I provided following properties files:
themes/mytheme/login/messages/messages_en.propertiesthemes/mytheme/account/messages/messages_en.propertiesthemes/mytheme/email/messages/messages_en.propertieswith the locale_nl=Nederlands property. After that I added the messages_nl.properties files with the translation strings.
Next I added the locales=en,nl,de property to following files:
themes/mytheme/login/messages/theme.propertiesthemes/mytheme/account/messages/theme.propertiesthemes/mytheme/email/messages/theme.propertiesThere is only one thing left to do: add the Dutch locale in the admin console. But I can't select the NL locale after I enabled internationalization. I can only select the English and German locale, my just created Dutch locale is not available:

According to Multilingual support and adding custom Locales in Keycloak, I should be able to add my own locale by just typing the locale and hitting 'enter', but that does not do anything.
I am missing a step here?
After reading the code, I understood only adding the files is not enough. You need to enable your theme not only for the login theme, but also for the account and email themes:

As I only changed the login theme to my own 'custom-theme', the Dutch locale did not show up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With