【发布时间】:2021-04-04 01:48:56
【问题描述】:
当本地化 Angular 应用程序并在 angular.json 文件中添加属性时,它会给出以下警告。
项目下:不允许使用属性 i18n。
"i18n": {
"sourceLocale": "en-US",
"locales": {
"ru": "src/i18n/messages.ru.xlf"
}
}
在 project/architect/build/configurations 下:不允许本地化属性。
"ru": {
"localize": ["ru"]
}
同时,ng serve 提供了这个错误。
Data path ".projects['xxx']" should NOT have additional properties(i18n).
【问题讨论】:
-
请提供一个最小的可重现代码示例作为起点,例如stackblitz.com 中的 Angular 项目。那么帮助你就容易多了。在stackoverflow.com/help/minimal-reproducible-example 了解更多信息
标签: angular angular-material angular-ui-router