- Internationalization (i18n) is the process of designing and preparing your app to be usable in different locales around the world.
- Localization (l10n) is the process of building versions of your app for different locales, including extracting text for translation into different languages, and formatting data for particular locales.
- A locale identifies a region (such as a country) in which people speak a particular language or language variant. The locale determines the formatting and parsing of dates, times, numbers, and currencies as well as measurement units and the translated names for time zones, languages, and countries.
ng add @angular/localize
- add
i18n
to any element that you would like translated - extract into a translation file via
ng extract-i18n
- create a copy of the translation file for each locale
- (optional) create a
serve
config for each locale
ng serve --configuration=en
- create
build
configuration for each locale - configure server to serve appropriate locale
ng add @ngneat/transloco