Unable to use registerLocaleForEsBuild
with locales such as "de-DE"
#21483
Labels
registerLocaleForEsBuild
with locales such as "de-DE"
#21483
Is there an existing issue for this?
Description
When using the
registerLocaleForEsBuild
function, locales such as "de-DE" are not supported even when provided in thecultureNameLocaleFileMap
. The function does not respect thecultureNameLocaleFileMap
when checking for supported cultures.Also, one may provide a
cultureNameLocaleFileMap
with unsupported locales (e.g.{de:"deffinitly-unsupported"}
); however, thelocale
(=de
) parameter is checked against thelocaleSupportList
, but thel
(=deffinitly-unsupported
) variable (which may have been mapped to a unsupported locale) is used later on.Reproduction Steps
Expected behavior
The function should support locales specified in the
cultureNameLocaleFileMap
, allowing for locales like "de-DE" to be registered properly. ThecultureNameLocaleFileMap
should be respected when determining supported locales.Actual behavior
Locales like "de-DE" are not supported, and the
cultureNameLocaleFileMap
is ignored when determining supported locales. Thelocale
parameter is checked against a predefinedlocaleSupportList
, and if it doesn't match, the function returns early without considering the mappings incultureNameLocaleFileMap
.Regression?
No response
Known Workarounds
No response
Version
9.0.0
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: