Extracting and Translating Messages
Generate and fill translation files.
From Marked Text to Translation Files
Once text is marked with i18n, Angular can collect every message into a translation source file. Translators fill in each target language, and the build merges those translations back in. This lesson covers extraction and the file format.
Running ng extract-i18n
The CLI command ng extract-i18n scans your app for marked messages and writes a translation source file (default messages.xlf).
ng extract-i18n
# generates messages.xlf in the project rootAll lessons in this course
- Marking Text for Translation
- Extracting and Translating Messages
- Plurals and Select (ICU)
- Building Localized Bundles