Building Localized Bundles
Produce per-locale application builds.
One Build per Locale
Angular's i18n is compile-time: it produces a separate, fully optimized bundle for each locale with the translations baked in. Users download only their language, with no runtime translation cost.
Configuring Localized Builds
With locales declared in angular.json, set localize: true in the build options to generate every locale at once.
"build": {
"options": {
"localize": true,
"outputPath": "dist/app"
}
}All lessons in this course
- Marking Text for Translation
- Extracting and Translating Messages
- Plurals and Select (ICU)
- Building Localized Bundles