0Pricing
Angular Academy · Lesson

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

  1. Marking Text for Translation
  2. Extracting and Translating Messages
  3. Plurals and Select (ICU)
  4. Building Localized Bundles
← Back to Angular Academy