Files
cheatsheet-tldr/tldr/ng-extract-i18n
2026-01-30 00:26:21 +00:00

34 lines
745 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng extract-i18n
> Extract i18n messages from source code.
> More information: <https://angular.dev/cli/extract-i18n>.
- Extract i18n messages:
`ng extract-i18n`
- Extract i18n messages in a specific format:
`ng extract-i18n --format {{arb|json|xlf|...}}`
- Extract i18n messages to a specific output file:
`ng extract-i18n --out-file {{path/to/file}}`
- Extract i18n messages to a specific directory:
`ng extract-i18n --output-path {{path/to/directory}}`
- Control how duplicate translations are handled:
`ng extract-i18n --i18n-duplicate-translation {{error|ignore|warning}}`
- Log progress to the console:
`ng extract-i18n --progress`