Skip to content
Metalop.comJust Another Blog about Technology
  • Technology
  • Programming
  • Other Stuff

Multilingual support and adding custom Locales in Keycloak

June 11, 2015 0 comments Article Technology Shiva

Keycloak 1.2.0 Final was released recently with tons of new features one of my favourites was Multilingual support for the login, account and admin pages. So this post will be a walkthrough on how to enable multilingual support in keycloak and how to add custom Local(messages in differnent languages) in keycloak.

  1.  To create new Locales just go to the web Keycloak’s web admin console > select your realm>settings>Themes tab.
    Here you can enable internationalization and type a Locale(if already not present in dropdown) and hit enter.
    I am creating a new Locale called test,but its advisable that you give a more meaningful name that goes with the naming convention e.g.  in-EN (for Indian English)
    keycloak
  2. Then you will have to create a property file for the messages(that will contain the text in the new language).I am giving an example for login page but you can use the same every where.
    1. open folder “KEYCLOAK_HOME/standalone/configuration/themes/base/login/messages”
    2. create a file  messages_NEWLOCALE.properties and enter the messages in the translated language(in our case the file name will be messages_test.properties).

    You can use the existing properties files as reference.
    Here KEYCLOAK_HOME is the location where keycloak is located and NEWLOCALE should be the name of the local you have created.
    keycloak2keycloak3

  3. And that’s it ! Easy right?
    You can go to the login page now and select from the dropdown to check.
    keycloak4
    I have demoed the login page but it is exactly the same process for the rest of the pages. Hoping this helps. Thanks for reading 🙂
Tags: JBoss, Keycloak, Keycloak-1.2.0-Final, SSO

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Blogroll

  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes

Archives

  • August 2024
  • December 2023
  • July 2019
  • June 2019
  • August 2016
  • April 2016
  • December 2015
  • August 2015
  • July 2015
  • June 2015
  • June 2014
  • October 2013
  • August 2013
  • March 2013
  • February 2013

Categories

  • Other Stuff
  • Programming
  • Raspberry Pi
  • Technology
  • Uncategorized

Most Tagged

Adaptive Streaming Android android apps apache knox Applock aviate big data classloading Contacts+ hadoop HTML5 J2SE Java JavaScript JBoss Keycloak Keycloak-1.2.0-Final knox MPEG-DASH Pushbullet Raspberry Pi Raspberry Pi 5 RP5 security SSO Video Youtube

Categories

  • Other Stuff
  • Programming
  • Raspberry Pi
  • Technology
  • Uncategorized

No Rights Reserved. | Theme by ThemeinProgress | Proudly powered by WordPress