ng xi18n
Extracts i18n messages from source code.
ng xi18n <project> [options]
参数
参数 | 说明 |
---|---|
<project> | The name of the project to build. Can be an app or a library. |
选项
选项 | 说明 |
---|---|
--browserTarget=browserTarget | Target to extract from. |
--configuration=configuration | A named build target, as specified in the "configurations" section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. 别名: -c |
--help= | Shows a help message for this command in the console. 默认值: |
--i18nFormat= | Output format for the generated file. 默认值: |
--i18nLocale=i18nLocale | Specifies the source language of the application. |
--outFile=outFile | Name of the file to output. |
--outputPath=outputPath | Path where output will be placed. |
--prod=true|false | When true, sets the build configuration to the production target. All builds make use of bundling and limited tree-shaking. A production build also runs limited dead code elimination. 默认值: |
--progress=true|false | Log progress to the console. 默认值: |