Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't user translation file for en-US: "An i18n locale ('en-US') cannot both be a source locale and provide a translation" #18422
Comments
|
I have the same problem, and agree with the suggested solution
|


I can't use a translation file for en-US:
Description
Possible solutions:
"translation"as a property of"sourceLocale"https://github.com/MartinJaskulla/angular-issue-38316
Angular Version:
Anything else relevant?
I know that there are several workarounds. For example we could provide a non-existent source locale
"sourceLocale": "aa-aa"and delete the build afterwards. However our app is very big and we want to save the build time.Furthermore our actual setup is more complex than the example provided above. For example the translations for the same locale e.g. my-app.com/de/en-US and my-app.com/us/en-US can be different. It would be useful for angular.json to provide some sort of nesting of the locales.