[keycloak-dev] Internationalization support (KEYCLOAK-301)
Michael Gerber
gerbermichi at me.com
Mon Feb 23 11:53:39 EST 2015
Hi all,
I started to work on the internationalization support (https://issues.jboss.org/browse/KEYCLOAK-301 <https://issues.jboss.org/browse/KEYCLOAK-301>).
I’ve already implemented the realm config in the admin console. I’ve put it into the „Theme Setting“ (see screenshot)
I added the possibility to enable internationalization, add supported locales and a select a default locale.
Now I’d like to implement the logic which choose the correct locale. Therefore I need the http header, cookie, query parameter, realm and user.
The LoginFormsProvider and AccountProvider have all this information apart from the http header and the cookie.
So I thought I could replace the UriInfo with the HttpRequest, but that doesn’t work, because I can not access the UriInfo through the HttpRequest (java.lang.NoSuchMethodError: org.jboss.resteasy.spi.HttpRequest.getUri()Ljavax/ws/rs/core/UriInfo;). So, I will add the HttpHeader to the LoginFormsProvider and AccountProvider, or does anyone have a better idea?
@Bill
How do you plan to store the claim „locale“ on a user? Will it be accessible through the UserModel interface?
Best
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150223/3d59c545/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-6.png
Type: image/png
Size: 169359 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150223/3d59c545/attachment-0001.png
More information about the keycloak-dev
mailing list