@rxap/plugin-i18n (Nx/Ng Plugin)
Installation
Add the plugin to your workspace:
ng add @rxap/plugin-i18n
Setup the package @rxap/plugin-i18n for the workspace.
Configure the builder @rxap/plugin-i18n for a project:
ng g @rxap/plugin-i18n:config [project]
Adds the @plugin-pack:build to the specified project
Schematics
config
Adds the @plugin-pack:build to the specified project
ng g @rxap/plugin-i18n:config
Option | Type | Default | Description |
---|---|---|---|
project | string | The name of the project. | |
availableLanguages | array | ||
assets | array | ||
defaultLanguage | string | en | The project default language code |
sourceLocale | string | en-US | The source locale code use in the project. |
overwrite | boolean | false | Whether to overwrite existing files. |
Required |
---|
project |
ng-add
Setup the package @rxap/plugin-i18n for the workspace.
ng g @rxap/plugin-i18n:ng-add
Option | Type | Default | Description |
---|---|---|---|
project | string | Name of the project |
Builder
build
build builder
Builder name
@rxap/plugin-i18n:build
Option | Type | Default | Description |
---|---|---|---|
availableLanguages | array | ||
defaultLanguage | string | ||
assets |