Skip to content

AcceptHeaderLocaleResolver should allow to define a default Locale [SPR-14312] #18884

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-14312 and commented

It would be cool if AcceptHeaderLocaleResolver would allow configuring a default Locale just as CookieLocaleResolver 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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions