title: Include user locale to the Keycloak ID token
body: <p>I would like Keycloak (1.4.0) to include the users' chosen locale to the ID token.</p>
  
  <p>I have come as far as creating a user attribute mapper, which was supposed to map the locale attribute to the token, but it does not work.</p>
  
  <p><strong>Does anybody know how to do this?</strong></p>
  
  <p>Thanks in advance.</p>
  
  <p>Edit: I have learnt what I know abput Keycloak Locales from this class: <a href="http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.keycloak/keycloak-forms-common-freemarker/1.2.0.Final/org/keycloak/freemarker/LocaleHelper.java#LocaleHelper.0LOGGER" rel="nofollow">http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.keycloak/keycloak-forms-common-freemarker/1.2.0.Final/org/keycloak/freemarker/LocaleHelper.java#LocaleHelper.0LOGGER</a></p>