CLI

extract-i18n

Command
ng extract-i18n

Extracts i18n messages from source code.

Arguments

project

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

Value Typestring

Options

@deprecated
browser-target

A browser 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 Typestring
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 Typestring
configuration
Aliasc

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 Typestring
format

Output format for the generated file.

Value TypestringDefaultxlf
help

Shows a help message for this command in the console.

Value Typeboolean
out-file

Name of the file to output.

Value Typestring
output-path

Path where output will be placed.

Value Typestring
progress

Log progress to the console.

Value TypebooleanDefaulttrue
Jump to details