spring-framework / org.springframework.web.servlet.i18n / SessionLocaleResolver / LOCALE_SESSION_ATTRIBUTE_NAME

LOCALE_SESSION_ATTRIBUTE_NAME

static val LOCALE_SESSION_ATTRIBUTE_NAME: String

Name of the session attribute that holds the Locale. Only used internally by this implementation.

Use RequestContext(Utils).getLocale() to retrieve the current locale in controllers or views.

See Also
org.springframework.web.servlet.support.RequestContext#getLocaleorg.springframework.web.servlet.support.RequestContextUtils#getLocale