
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@ng-intl/core
Advanced tools
ng-intl revolutionizes Angular internationalization with type-safety, IDE intellisense, and signal-based reactivity.
🚀 Efficient: Lazy-load bundled translations without HTTP requests.
🔍 Type-Safe: Full TypeScript and IDE intellisense support.
⚡ Reactive: Signal-based for seamless language switching.
🔧 Flexible: Supports both JSON and TypeScript translation files.
🌐 Scalable: Ideal for projects of all sizes.
npm install @ng-intl/core
import { provideTranslation } from '@ng-intl/core';
providers: [
provideTranslation({ defaultLanguage: 'en' })
]
import { createScopedTranslation, LanguageService } from '@ng-intl/core';
const { TranslationService, provideScopedTranslation } = createScopedTranslation({
en: () => import('./i18n/en.json'),
es: () => import('./i18n/es'),
fr: () => import('./i18n/fr.json')
});
@Component({
selector: 'app-root',
template: `
<h1>{{ translations()?.appTitle }}</h1>
<p>{{ translations()?.welcomeMessage | interpolate: { username: currentUser } }}</p>
<button (click)="changeLanguage('en')">{{ translations()?.languages.english }}</button>
<button (click)="changeLanguage('es')">{{ translations()?.languages.spanish }}</button>
<button (click)="changeLanguage('fr')">{{ translations()?.languages.french }}</button>
`,
providers: [provideScopedTranslation()]
})
export class AppComponent {
protected readonly translations = inject(TranslationService).translations;
private readonly languageService = inject(LanguageService);
currentUser = 'John Doe';
protected changeLanguage(lang: 'en' | 'es' | 'fr') {
this.languageService.setLanguage(lang);
}
}
The InterpolationPipe offers versatile string interpolation and localization:
<!-- Simple interpolation -->
{{ 'Hello, {{name}}!' | interpolate:{ name: 'World' } }}
<!-- Select rule -->
{{ 'mySelectRule: "{gender, select, male {He} female {She} other {They}}"' | interpolate:{ gender: 'female' } }}
<!-- Plural rule -->
{{ 'myPluralRule: "{count, plural, =0 {no results} one {1 result} other {# results}}"' | interpolate:{ count: 5 } }}
The pipe supports nested rules, whitespace handling, fallbacks, and various data types, making it suitable for complex internationalization scenarios.
MIT
FAQs
Revolutionize Your Angular Translations
We found that @ng-intl/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.