Skip to main content
Angular CLI - ng xi18n

Angular CLI - ng xi18n

Relate the tutorial's legacy xi18n name to current extract-i18n usage.

Angular CLI - ng xi18n illustration

How it works

Older Angular CLI material may call message extraction ng xi18n. Current CLI documentation uses ng extract-i18n. Check the command offered by the project’s installed version and configure extraction format and output paths deliberately.

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 xi18n · Current Angular CLI reference · Workspace configuration.