Closed
Description
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 of en-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
Locale data for 'en-US' cannot be found. Using locale data for 'en'.
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 14.0.1
Node: 16.14.2
Package Manager: npm 7.17.0
OS: linux x64
Angular: 14.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1400.1
@angular-devkit/build-angular 14.0.1
@angular-devkit/core 14.0.1
@angular-devkit/schematics 14.0.1
@schematics/angular 14.0.1
rxjs 7.5.5
typescript 4.7.3
Anything else?
No response