@ngx-translate/core adds dynamic translations to Angular apps. It loads language files at runtime, switches locales without reload, and supports pipes, directives, and signal-based APIs.
Overview
ngx-translate is an internationalization library for Angular that keeps translations outside compile-time i18n. Applications load JSON or other resource files over the network and can change the active language while the UI updates in place.
Recent versions rebuild around Angular signals. currentLang, fallbackLang, and translated strings integrate with templates, computed(), and effect(). A standalone translate() function returns a reactive signal, and a translateBlock directive exposes a typed t() helper in template blocks.
Configuration uses provideTranslateService() with standalone TranslatePipe and TranslateDirective imports instead of the older TranslateModule.forRoot pattern. Child scopes can use provideChildTranslateService() for hierarchical fallbacks or isolated language state on lazy routes.
Optional HTTP loaders support multiple resource files and configurable 404 handling. Documentation positions ngx-translate for hybrid stacks such as Ionic and for projects needing flexible runtime switching compared with Angular’s built-in static i18n workflow. Plugin and tooling ecosystems help extract and manage translation keys.
Key features
- Runtime language switching
- Signal-based translation state
- Standalone translate() signal API
- TranslatePipe and TranslateDirective
- Hierarchical child translate services
- HTTP loader with multi-file support
- Lazy-route friendly configuration
- Plugin ecosystem for advanced formats
Use cases
- Add i18n to existing Angular apps
- Switch languages without full reload
- Share translations across lazy modules
- Build Ionic or hybrid translated UIs
- Load only needed locale files