angular-i18n

Extract messages and configure locales for Angular localized builds.

6|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill angular-i18n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-i18n
Source: https://github.com/oguzhan18/angular-ecosystem-skills/tree/main/skills/angular-i18n
Command: npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill angular-i18n

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides prescriptive guidance and operational instructions for implementing internationalization and localization in Angular applications, reducing errors when extracting messages, configuring locales, and producing localized builds and runtime translations.

Core Features & Use Cases

  • Message extraction & tooling: Guidance for marking text, extracting messages with ng extract-i18n, and using $localize for in-code messages.
  • Build and runtime localization: Instructions for configuring angular.json locales, building multiple-language bundles with --localize, and lazy-loading runtime translations.
  • Integration & alternatives: Advice for using @angular/localize and optional libraries like @ngx-translate or transloco for dynamic translation loading; use case: prepare an app for English and Spanish with localized production builds and runtime fallbacks.

Quick Start

Use the angular-i18n skill to generate step-by-step instructions to extract translation messages, configure angular.json locales for en and es, and build localized production bundles.

Frequently Asked Questions about angular-i18n

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract translation messages from an Angular application?

To extract translation messages from an Angular application, you use the ng extract-i18n command to pull marked text and $localize tagged messages into a standard translation file for editing.

How do I configure angular.json for multiple locale builds?

Configuring angular.json for multiple locale builds involves defining locale mappings in the build configurations section, allowing you to produce separate language bundles using the --localize flag.

Does Angular i18n support runtime translation loading?

Angular i18n supports runtime translation loading by integrating with optional third-party libraries like @ngx-translate or transloco, enabling dynamic language switching and lazy-loaded translations without rebuilding.

When should I use @angular/localize vs @ngx-translate for localization?

Use @angular/localize for compile-time localization with multiple localized builds, and choose @ngx-translate when you need dynamic runtime translation loading and fallbacks without separate build configurations.

What is the best way to build an Angular app for English and Spanish?

The best way to build an Angular app for English and Spanish is to configure angular.json locales for both languages and use the --localize flag to generate distinct production bundles for each.