Skip to content

Invalid i18n configuration: Locales 'ru' and 'en' cannot have the same subPath: ''. #29398

Closed
@zip-fa

Description

@zip-fa

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hey.
With v19.1 it's not possible to build with this config:

"sourceLocale": {
      "code": "ru",
      "subPath": ""
    },
    "locales": {
      "en": {
        "translation": "apps/frontend/src/locale/messages.en.xlf",
        "subPath": ""
      }
    },
"configurations": {
        "production-en": {
          "localize": ["en"]
        },
        "production": {
          "localize": ["ru"],
}

How about moving non-unique subPath check inside build configuration, but not global?

This should fail:

"configurations": {
 "production": {
          "localize": ["ru", "en"],
}
}

This should not:

"configurations": {
 "production": {
          "localize": ["ru"],
}
}

Minimal Reproduction

ng build

Exception or Error


Your Environment

v19.1

Anything else relevant?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions