I am getting this strange warning
Locale data for 'en-US' cannot be found. No locale data will be included for this locale
when running ng build --configuration=prod --localize
here is my angular.json
// omitted
"i18n": {
"sourceLocale": "en-US",
"locales": {
"sr-Latn": {
"translation": "src/locale/messages.sr.xlf",
"baseHref": "/sr/"
}
}
},
// omitted
The documentation clearly states en-US is imported by default.
To make things worse, when i change sourceLocale to any other language (say 'de'), warning message goes away.
Manually registering en-US locale data doesnt help either
It is working if you set sourceLocale to en
.
en-US
dosnt work."i18n": {
"sourceLocale": "en",
"locales": {...}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With