
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@ng-intl/core
Advanced tools
Tired of juggling translation keys and hunting down typos? Say hello to ng-intl – the game-changing Angular translation library that brings the power of intellisense to your i18n workflow.
🚀 First of Its Kind: Harness the full potential of your IDE with unparalleled intellisense support for translations.
🔧 Type-Safe & Flexible: Catch errors before they happen and adapt to your project's needs with ease.
🌐 JSON & TypeScript Ready: Whether you prefer JSON simplicity or TypeScript sophistication, we've got you covered.
💡 Smart Interpolation: Seamlessly integrate dynamic content into your translations.
⚡ Lightning-Fast Setup: Get up and running in minutes, not hours.
ng-intl isn't just another translation library – it's your partner in creating truly global Angular applications. Dive in and experience the future of Angular internationalization!
npm install @ng-intl/core
providers array of your main.ts:import { provideTranslation } from '@ng-intl/core';
// ...
providers: [
provideTranslation() // Uses default configuration
// Or customize the configuration:
// provideTranslation({
// defaultLanguage: 'en',
// interpolation: 'brackets'
// })
]
import { createScopedTranslation, LanguageService } from '@ng-intl/core';
const { TranslationService, provideScopedTranslation } = createScopedTranslation({
en: () => import('./i18n/en.json'),
es: () => import('./i18n/es'), // Note: supports both .json and .ts files
fr: () => import('./i18n/fr.json')
});
provideScopedTranslation() output, and you can inject the service in your component.
This will let you use the scoped translation service.@Component({
selector: 'app-root',
template: `
<header>
<h1>{{ translations()?.appTitle }}</h1>
<nav>
<button (click)="changeLanguage('en')">English</button>
<button (click)="changeLanguage('es')">Español</button>
<button (click)="changeLanguage('fr')">Français</button>
</nav>
</header>
<main>
<p>{{ translations()?.welcomeMessage | interpolate: { username: currentUser } }}</p>
<p>{{ translations()?.currentLanguage }}: {{ currentLanguage }}</p>
</main>
`,
providers: [provideScopedTranslation()]
})
export class AppComponent {
protected readonly translations = inject(TranslationService).translations;
private readonly languageService = inject(LanguageService);
currentUser = 'John Doe';
currentLanguage = 'en';
protected changeLanguage(lang: 'en' | 'es' | 'fr') {
this.languageService.setLanguage(lang);
}
}
The provideTranslation() function sets up the translation configuration. It can be used without arguments to use the default configuration:
import { provideTranslation } from '@ng-intl/core';
providers: [
provideTranslation() // Uses default configuration
]
Or you can customize the configuration:
import { provideTranslation } from '@ng-intl/core';
providers: [
provideTranslation({
defaultLanguage: 'en',
interpolation: 'brackets' // or 'parentheses'
})
]
Default configuration:
defaultLanguage: 'en'interpolation: 'brackets'MIT
FAQs
Revolutionize Your Angular Translations
The npm package @ng-intl/core receives a total of 1 weekly downloads. As such, @ng-intl/core popularity was classified as not popular.
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.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

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.