ng extract-i18n [project] [options]
Extracts i18n messages from source code.
Arguments
project
The name of the project to build. Can be an application or a library.
Value Type
string
Options
build-target
A 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.
Value Type
string
configuration
One or more named builder configurations as a comma-separated list as specified in the "configurations" section in angular.json. The builder uses the named configurations to run the given target. For more information, see https://angular.dev/reference/configs/workspace-config#alternate-build-configurations.
Value Type
string
format
Output format for the generated file.
Value Type
stringAllowed Values
arb, json, legacy-migrate, xlf, xlf2, xlif, xliff, xliff2, xmbDefault
xlf
help
Shows a help message for this command in the console.
Value Type
boolean
i18n-duplicate-translation
How to handle duplicate translations.
Value Type
stringAllowed Values
error, ignore, warning
out-file
Name of the file to output.
Value Type
string
output-path
Path where output will be placed.
Value Type
string
progress
Log progress to the console.
Value Type
booleanDefault
true