W3cubDocs

/Angular 7

ng xi18n

Extracts i18n messages from source code.

ng xi18n <project> [options]

Arguments

Argument Description
<project>

The name of the project to build. Can be an app or a library.

Options

Option Description
--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.

Aliases: -c

--help= true|false|json|JSON

Shows a help message for this command in the console.

Default: false

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

Output format for the generated file.

Default: xlf

--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.

Default: true

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/cli/xi18n