29 lines
652 B
Markdown
29 lines
652 B
Markdown
|
|
# 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`
|