i18n Spring MVC
- by Enrique
Hello.
I want to use SessionLocaleResolver to get the locale from user session.
The documentation says this:
"Another option of resolving locales is by SessionLocaleResolver. It resolves locales by inspecting
a predefined attribute in a user’s session. If the session attribute doesn’t exist, this locale
resolver will determine the default locale from the accept-language HTTP header."
But it does not say which attribute do I have to put in session. Y tried saving in session an attribute "lang" with value "en" but it did not work. Anybody knows which attribute do I have to save in session (key,value)?