spring-framework / org.springframework.web.servlet.i18n / CookieLocaleResolver / LOCALE_REQUEST_ATTRIBUTE_NAME

LOCALE_REQUEST_ATTRIBUTE_NAME

static val LOCALE_REQUEST_ATTRIBUTE_NAME: String

The name of the request attribute that holds the Locale.

Only used for overriding a cookie value if the locale has been changed in the course of the current request!

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