New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intl.DateTimeFormat does not support 'und' locale #885
Comments
I thought that |
|
The reason is very simple. there are no locale resources defined for "und". |
The resources for "und" are stored in root.xml in CLDR. |
In v8, internally we call
to find out what locales are available. neither "und" nor "root" is enumerated https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/uloc_8h.html#a1d61e1cb6a0d2ad60dc3cd78c931e551 if "und" and "root" are not reported by ICU as "available locales", then v8 will not treat them as supported. |
sorry, I hit closed by accident. |
I made an upstream issue: https://unicode-org.atlassian.net/browse/ICU-22766 Whether or not ICU decides to start including the root locale in the return value of |
This seems wrong. Apparently 'und' falls back to 'en', which is different behavior than ICU4C.
Examples:
The text was updated successfully, but these errors were encountered: