Skip to content

LOCALE_ID wrong #59405

@gobeli

Description

@gobeli

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

No one assigned

    Labels

    area: i18nIssues related to localization and internationalizationneeds reproductionThis issue needs a reproduction in order for the team to investigate further

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions