-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular localize/i18n since v14 release can't locate en-US
locale even if it exists
#23334
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
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Comments
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jun 9, 2022
Pre version 14, the local for `en-US` was `en-US-POSIX`. In version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes angular#23334
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jun 9, 2022
Pre version 14, the locale for `en-US` was `en-US-POSIX`. now in version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes angular#23334
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jun 9, 2022
Pre version 14, the locale for `en-US` was `en-US-POSIX`. now in version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes angular#23334
alan-agius4
added a commit
to alan-agius4/angular-cli
that referenced
this issue
Jun 9, 2022
Pre version 14, the locale for `en-US` was `en-US-POSIX`. now in version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes angular#23334
clydin
pushed a commit
that referenced
this issue
Jun 9, 2022
Pre version 14, the locale for `en-US` was `en-US-POSIX`. now in version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes #23334
clydin
pushed a commit
that referenced
this issue
Jun 9, 2022
Pre version 14, the locale for `en-US` was `en-US-POSIX`. now in version 14, this has changed to `en-US`. List of all available locales https://github.com/unicode-org/cldr-json/blob/7033ea9b03aad6ef9cc64057d9cb88fec3fecc53/cldr-json/cldr-core/availableLocales.json#L64 Closes #23334 (cherry picked from commit 1f66ede)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Which @angular/* package(s) are the source of the bug?
localize
Is this a regression?
Yes
Description
Running a simple Angular project with the
localize
package with a source locale ofen-US
and any number of translation languages throws a warning:Locale data for 'en-US' cannot be found. Using locale data for 'en'.
This can even be seen in Angular's own example localized app found here https://angular.io/guide/i18n-example (StackBlitz: https://angular.io/generated/live-examples/i18n/stackblitz.html).
I forked this StackBlitz project and dropped all of the
@angular/*
packages back to v13 and the warning disappears so it looks like a clear regression.Please provide a link to a minimal reproduction of the bug
Your own example: https://angular.io/generated/live-examples/i18n/stackblitz.html
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: