docs(angular): add translation files content (#6947)

pull/6977/head
J. Degand 3 months ago committed by GitHub
parent 9d3868494b
commit 733e282454
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/angular/content/translation-files@jL5amGV1BAX_V5cyTIH7d.md

@ -1 +1,9 @@
# 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`.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Translation Files](https://angular.dev/guide/i18n/translation-files)
- [@official@Angular Official Docs - Extract i18n](https://angular.dev/cli/extract-i18n)
- [@article@Angular i18n: internationalization & localization with examples](https://lokalise.com/blog/angular-i18n/)
Loading…
Cancel
Save