0.6.1 • Published 3 months ago

@relayfy/angular-builders v0.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@relayfy/angular-builders

Node.js CI Codecov npm npm version NPM

Builders

merge-i18n

Merge-i18n is an extension of the extract-i18n command. It can be used separately or run extract-i18n as a pre-command.

Installation

npm i @relayfy/angular-builders

Setup

angular.json

{
  ...
  "projects": {
    ...
    "demo": {
      ...
      "i18n": {
        "sourceLocale": "en-US",
        "locales": {
          "de-CH": "src/locale/translations.de-CH.xlf",
          "fr-CH": "src/locale/translations.fr-CH.xlf"
        }
      },
      ...
      "architect": {
        ...
        "extract-i18n": {
+          "builder": "@relayfy/angular-builders:merge-i18n",
-          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "demo:build",
            "format": "xlf",
            "outFile": "src/locale/translations.en-US.xlf",
+            "i18nBuilder": "@angular-devkit/build-angular:extract-i18n"
          }
        },
        ...
      }
    }
  }
}

Options | Option | Default | Description | | ------------- | ------------- | ------------- | | browserTarget | undefined | inherit from extract-i18n: A browser builder target to extract i18n messages in the format of project:target[:configuration]. You can also pass in more than one configuration name as a comma-separated list. Example: project:target:production,staging. | | format | xlf | inherit from extract-i18n: Output format for the generated file. | | progress | true | inherit from extract-i18n: By default, extract-i18n is executed before merge-i18n. You can prevent this with preventExtractI18n = true. | | outputPath | undefined | inherit from extract-i18n: Path where output will be placed. | | outFile | undefined | inherit from extract-i18n: Name of the file to output. | | i18nBuilder | @angular-devkit/build-angular:extract-i18n | The i18n builder to execute before merge. |

Limits

Currently only the xlf and xlf2 format is supported. Others will follow.

0.6.1

3 months ago

0.5.0

8 months ago

0.6.0

6 months ago

0.4.0-next.2

1 year ago

0.4.0-next.0

1 year ago

0.4.0-next.1

1 year ago

0.4.0

1 year ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.3.0-next.2

2 years ago

0.3.0-next.1

2 years ago

0.3.0-next.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1-alpha.11

2 years ago

0.0.1-alpha.10

2 years ago

0.0.1-alpha.9

2 years ago

0.0.1-alpha.8

2 years ago

0.0.1-alpha.7

2 years ago

0.0.1-alpha.6

2 years ago

0.0.1-alpha.5

2 years ago

0.0.1-alpha.4

2 years ago

0.0.1-alpha.3

2 years ago

0.0.1-alpha.2

2 years ago

0.0.1-alpha.1

2 years ago

0.0.1-alpha.0

2 years ago