snippetbashTip
ng extract-i18n — Extract i18n messages from source code. More information: <https://angular.dev/cli/extract-i18n>.
Viewed 0 times
extractcommandfromsourceclimessagesng extract-i18ni18n
Problem
How to use the
ng extract-i18n command: Extract i18n messages from source code. More information: <https://angular.dev/cli/extract-i18n>.Solution
ng extract-i18n — Extract i18n messages from source code. More information: <https://angular.dev/cli/extract-i18n>.Extract i18n messages:
ng extract-i18nExtract 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 --progressCode Snippets
Extract i18n messages
ng extract-i18nExtract 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}}Context
tldr-pages: common/ng extract-i18n
Revisions (0)
No revisions yet.