LocaleEditor cannot parse language tag with script like zh-Hans #33348
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
When I tried to load locales from
application.yml
toList<Locale>
, Spring Framework'sLocaleEditor
is called to map it, but locales with scripts likezh-Hans
orzh-Hant
are not handled correctly because the locale is not loaded with theLocale.forLanguageTag
method.In method
setAsText
ofLocaleEditor
, the call toStringUtils.parseLocaleString
should probably be replaced withStringUtils.parseLocale
like it is inStringToLocaleConverter
.The text was updated successfully, but these errors were encountered: