填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ng xi18n

Extracts i18n messages from source code.

ng xi18n <project> [options]
      
      ng xi18n <project> [options]
    
ng i18n-extract <project> [options]
      
      ng i18n-extract <project> [options]
    

参数

参数说明
<project>

The name of the project to build. Can be an application 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. Setting this explicitly overrides the "--prod" flag

别名: -c

--format=
xmb|xlf|xlif|xliff|xlf2|xliff2

Output format for the generated file.

默认值: xlf

--help=
true|false|json|JSON

Shows a help message for this command in the console.

默认值: false

--i18nFormat=
xmb|xlf|xlif|xliff|xlf2|xliff2

Deprecated: Use 'format' option instead.

Output format for the generated file.

默认值: xlf

--i18nLocale=i18nLocale

Deprecated: Use 'i18n' project level sub-option 'sourceLocale' instead.

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

Shorthand for "--configuration=production". When true, sets the build configuration to the production target. By default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination.

--progress=true|false

Log progress to the console.

默认值: true