【问题标题】:Output path for i18n angular.jsoni18n angular.json 的输出路径
【发布时间】:2020-05-01 11:57:08
【问题描述】:

我想为我的 Angular (9) i18n 应用程序添加自定义输出路径。 目前我有:

"sourceLocale": "de",
    "locales": {
      "de-AT": {
        "baseHref": "at",
        "translation": "src/locale/messages.de.xlf"
      }

我希望在 build/at 中生成输出(就像 baseHref 实际上一样),但它在 build/de-AT 中。

有什么办法可以做到吗?

【问题讨论】:

    标签: angular angular-i18n


    【解决方案1】:

    这在本机尚不可能,但您可以使用 postbuild 脚本。相关功能请求:https://github.com/angular/angular-cli/issues/16997

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-21
      • 1970-01-01
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多