0Pricing
Angular Academy · Lesson

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 root

All lessons in this course

  1. Marking Text for Translation
  2. Extracting and Translating Messages
  3. Plurals and Select (ICU)
  4. Building Localized Bundles
← Back to Angular Academy