AcceptHeaderLocaleResolver should allow to define a default Locale [SPR-14312] #18884
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-14312 and commented
It would be cool if
AcceptHeaderLocaleResolver
would allow configuring a defaultLocale
just asCookieLocaleResolver
does. The use case is that I'd like to allow clients to explicit request a certain local but at the same time make sure that a well-defined default is used, independently of the system language (to prevent different deployment locations from changing the default).It looks like we'd have to check whether the
Accept-Language
header is set explicitly to find out whether to use the configured default in the first place.Issue Links:
Referenced from: commits 8343ce9
The text was updated successfully, but these errors were encountered: