Repository navigation
Closed
Labels
area: i18nIssues related to localization and internationalizationneeds reproductionThis issue needs a reproduction in order for the team to investigate further
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
After the update to Angular 19, we always get "en-US" as the chosen locale (injection token LOCALE_ID).
Can someone explain why this might be? We have 4 locales and all translations are displaying correctly, but the LOCALE_ID is always "en-US".
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 18.2.1
Node: 20.17.0
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.0.5
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1802.1
@angular-devkit/build-angular 19.0.6
@angular-devkit/core 18.2.1
@angular-devkit/schematics 18.2.1
@angular/cdk 19.0.4
@angular/cli 18.2.1
@angular/material 19.0.4
@angular/ssr 19.0.6
@schematics/angular 18.2.1
rxjs 7.8.1
typescript 5.5.4
zone.js 0.15.0
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area: i18nIssues related to localization and internationalizationneeds reproductionThis issue needs a reproduction in order for the team to investigate further
Activity
JeanMeche commentedon Jan 7, 2025
Hi, could you provide a reproduction of this issue so we can have a look at it ? Thank you.
wartab commentedon Jan 7, 2025
We also had this issue.
I am not 100% certain if that ended up being the fix, but from memory, we had an import of
$localizesomewhere in the code, because WebStorm somehow added the importimport {$localize} from "@angular/localize/init";in one of our files. That needs to be removed.gobeli commentedon Jan 8, 2025
That was it @wartab thank you!
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
fix(@angular/build): warn when `@angular/localize/init` is imported d…
angular-automatic-lock-bot commentedon Feb 8, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.