angular-cli: i18n IVY - Next.12 LocaleID not set

🐞 bug report

Description

Setting locale in angular.json is ignored by the compiler. No matter the locale, injecting the localeID token gives β€œen-US” .

πŸ”¬ Minimal Reproduction

Set locale in angular.json

              "i18nFile": "src/locale/messages.sv.xlf",
              "i18nFormat": "xlf",
              "i18nLocale": "sv",
              "baseHref": "/sv/"

Serve the app, inject localeID token and print it out, gives β€œen-US”

🌍 Your Environment

Angular Version:



Angular CLI: 9.0.0-next.12
Node: 12.2.0
OS: darwin x64
Angular: 9.0.0-next.12
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.900.0-next.12
@angular-devkit/build-angular      0.900.0-next.12
@angular-devkit/build-optimizer    0.900.0-next.12
@angular-devkit/build-webpack      0.900.0-next.12
@angular-devkit/core               9.0.0-next.12
@angular-devkit/schematics         9.0.0-next.12
@angular/cdk                       9.0.0-next.0
@angular/material                  9.0.0-next.0
@angular/material-moment-adapter   9.0.0-next.0
@angular/pwa                       0.900.0-next.12
@ngtools/webpack                   9.0.0-next.12
@schematics/angular                9.0.0-next.12
@schematics/update                 0.900.0-next.12
rxjs                               7.0.0-alpha.0
typescript                         3.6.4

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 21 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks for reporting this issue @spock123. I moved this issue to Angular CLI repo for further investigation. Thank you.

This issue has not yet been corrected and is still in progress.