BCP 47 compatible Locale support [SPR-13274] #17865
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Mike Noordermeer opened SPR-13274 and commented
Currently, the Spring localehandling (i.e.,
LocaleChangeInterceptor
andLocaleResolver
) only support language tags in the legacy pre-Java 7 format (e.g.,nl_NL
). Nowadays BCP 47 language tags 1 are the recommended approach 2, but none of the Spring supplied classes accept the new format.I think it should be fairly easy to support both formats (simply replacing some underscores with dashes should bring you a long way), and am willing to provide a PR once we agree on which classes should be changed and whether BCP 47 should be opt-in or not. What are your thoughts on this?
Affects: 4.2 RC3
Issue Links:
Referenced from: commits 4668aa7
The text was updated successfully, but these errors were encountered: