Translation Files
Last updated
What is Translation Files?
After you prepare a component for translation, use the extract-i18n Angular CLI command to extract the marked text in the component into a source language file. The marked text includes text marked with i18n, attributes marked with i18n-attribute, and text tagged with $localize. The extract-i18n command creates a source language file named messages.xlf in the root directory of your project. If you have multiple language files, add the locale to the file name, like messages.{locale}.xlf.
Free resources to learn Translation Files
- Official docsTranslation Files
- Official docsExtract i18n
- ArticleAngular i18n: internationalization & localization with examples
More in stage 24: Internationalization
Translation Files: common questions
Can I learn Translation Files in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Translation Files in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Translation Files tutorial for beginners?
It is lesson 137 of 158 in the free Angular roadmap, in stage 24, Internationalization. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.