A focused reference for Angular's built-in i18n system, covering everything from marking text with i18n attributes to extracting messages and building localized versions of your app. You get examples of pluralization, gender-specific translations, and attribute localization, plus configuration snippets for angular.json. It also touches on runtime translation loading with ngx-translate as an alternative approach. The best practices lean heavily on the template-based approach using i18n attributes and the $localize API, which is Angular's official path forward. If you're choosing between Angular's compile-time i18n and runtime libraries, this gives you patterns for both without much editorial guidance on the tradeoffs.

skills.sh installs
194
GitHub stars
7
last updated
Aug 21, 2026

Install

$ npx -y skills add oguzhan18/angular-ecosystem-skills --skill angular-i18n --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular i18n

Version: Angular 21 (2025) Tags: i18n, Internationalization, Localization, Translations

References: i18n Guide • Angular Localize

API Changes

This section documents recent version-specific API changes.

  • NEW: @angular/localize — Built-in i18n support

  • NEW: $localize — Message extraction

  • NEW: Angular CLI i18n — Multiple language builds

  • NEW: Lazy-loaded translations — Runtime translation loading

Best Practices

  • Mark text for translation
@Component({
  template: `
    <h1 i18n="@@welcome">Welcome to our app!</h1>
    <p i18n="@@greeting">Hello, world!</p>
  `
})
export class HomeComponent {}
  • Use translations with placeholders
@Component({
  template: `
    <p i18n="@@userCount">
      There are { count, plural, =0 { no users } =1 { one user } other { {{ count }} users } } in the system.
    </p>
  `
})
export class UsersComponent {
  count = 5;
}
  • Use gender-specific translations

Sponsors

Details

Repository
github.com/oguzhan18/angular-ecosystem-skills
Category
Frontend Development
First seen
Jun 3, 2026

More from oguzhan18/angular-ecosystem-skills

All 45
1oguzhan18 avatarangular-servicesoguzhan18/angular-ecosystem-skillsALWAYS use when working with Angular Services, @Injectable, dependency injection, or business logic services.193skills.sh installs
2allenai2014 avatarpencil-ui-designallenai2014/pencil-ui-design使用 Pencil MCP 创建工业级 UI 设计的完整工作流和组件库192skills.sh installs
3oguzhan18 avatarangular-performanceoguzhan18/angular-ecosystem-skillsALWAYS use when optimizing Angular applications for performance, change detection, bundle size, lazy loading, or runtime performance.192skills.sh installs
4nexu-io avatarhtml-ppt-pitch-decknexu-io/open-designInvestor-ready 10-slide HTML pitch deck — white + blue→purple gradient hero, big numbers, traction bar chart, $4.5M-style ask page. Use when the user wants a fu190skills.sh installs
5davila7 avataravalonia-layout-zafirodavila7/claude-code-templatesGuidelines for modern Avalonia UI layout using Zafiro.Avalonia, emphasizing shared styles, generic components, and avoiding XAML redundancy.188skills.sh installs
6charleswiltgen avataraxiom-swiftui-layout-refcharleswiltgen/axiomReference — Complete SwiftUI adaptive layout API guide covering ViewThatFits, AnyLayout, Layout protocol, onGeometryChange, GeometryReader, size classes, and iO187skills.sh installs