Skip to main content
Angular CLI - ng extracti18n Command

Angular CLI - ng extracti18n Command

Extract marked messages into translation source files.

Angular CLI - ng extracti18n Command illustration

How it works

The current command is ng extract-i18n, which extracts marked messages into a translation file. Configure the build target, output format, and destination as appropriate. Older tutorial spellings may differ from current CLI syntax.

Good practice

  • Check the local Angular CLI version and run commands from the intended workspace.
  • Review angular.json targets and builders before assuming optional commands are configured.
  • Use the package manager and lockfile selected by the project.
  • Review generated files, configuration changes, and build output before committing or deploying.

Further reading: Tutorialspoint: Angular CLI - ng extracti18n Command · Current Angular CLI reference · Workspace configuration.