🐞 Bug report
Command (mark with an x)
Is this a regression?
Looks so
Description
With this config:
"i18n": {
"sourceLocale": {
"code": "en-US",
"baseHref": ""
},
"locales": {
"de": {
"baseHref": "",
"translation": "projects/project_name/src/i18n/messages.de.xlf"
}
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"configurations": {
"production": {
"localize": ["de"],
ng build ignores "baseHref" of the locale and always adds "de".
If configurations.production.localize set to "true", then it will add "de" for some files an "en-US" for others.
Would be awesome if empty baseHref had effect, described here: https://stackoverflow.com/a/61384524/680786 (not adding any prefix)
🌍 Your Environment
Angular CLI: 12.0.0-rc.2
Package Manager: npm 7.11.2
Angular: 12.0.0-rc.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, platform-browser, platform-browser-dynamic
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.0-rc.2
@angular-devkit/build-angular 12.0.0-rc.2
@angular-devkit/core 12.0.0-rc.2
@angular-devkit/schematics 12.0.0-rc.2
@schematics/angular 12.0.0-rc.2
ng-packagr 12.0.0-rc.1
rxjs 7.0.0
typescript 4.2.4
Reproduced on Linux and Windows.
🐞 Bug report
Command (mark with an
x)Is this a regression?
Looks so
Description
With this config:
ng buildignores "baseHref" of the locale and always adds "de".If configurations.production.localize set to "true", then it will add "de" for some files an "en-US" for others.
Would be awesome if empty baseHref had effect, described here: https://stackoverflow.com/a/61384524/680786 (not adding any prefix)
🌍 Your Environment
Reproduced on Linux and Windows.