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
- feat(ivy): allow the locale to be set via a global property The ivy compile time inlining tools work on the code after it has been compiled and bundled (potentially minified and mangled). It is only ... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Angular in t... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Angular in t... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Angular in t... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Angular in t... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Angular in t... — committed to petebacondarwin/angular by petebacondarwin 5 years ago
- feat(ivy): allow the locale to be set via a global property (#33314) In the post-$localize world the current locale value is defined by setting `$localize.locale` which is then read at runtime by Ang... — committed to angular/angular by petebacondarwin 5 years ago
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.