This project is a tutorial on how to do internationalization (i18n) in Angular projects with the @angular/localize
.
It contains examples for:
- Marking content for extraction using the
i18n
attribute - Different kinds of messages (plain text, ICU Plural, ICU Select, etc.)
- Extraction of the marked content
- Translation of the XLIFF files
- Language switcher
- RTL handling
For more details, check out the full article: Angular i18n tutorial
- Node
- npm
- git
git clone
cd angular-i18n-example
npm install
ng serve --configuration=<LOCALE> --open
(pass one of supported localesar
,en-US
, orfr
)