如何为 @angular/localize 设置源语言
安装 @angular/localize 后,你可以在 angular.json 中设置源语言:添加
messages.json
"i18n": {
"sourceLocale": "de",
},到你的项目,例如:
angular.json
[...]
"projects": {
"MyApplication": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "sass"
}
},
"i18n": {
"sourceLocale": "de",
"locales": {
"en": "src/locale/messages.en.xlf"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
[...]Check out similar posts by category:
Angular, Typescript
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow