Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

ng extract-i18n

Extracts i18n messages from source code.

      
      ng extract-i18n [project]
    

Arguments

Argument Description Value Type
project

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

string

Options

Option Description Value Type Default Value
--browser-target

Deprecated: Use 'buildTarget' instead.

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.

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

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.io/guide/workspace-config#alternate-build-configurations.

Aliases: -c

string
--format

Output format for the generated file.

xmb | xlf | xlif | xliff | xlf2 | xliff2 | json | arb | legacy-migrate xlf
--help

Shows a help message for this command in the console.

boolean
--out-file

Name of the file to output.

string
--output-path

Path where output will be placed.

string
--progress

Log progress to the console.

boolean true