Library / SDK
ngx-translate/core avatar
ngx-translate/core

ngx-translate/core: runtime i18n for Angular, and its v18 support policy

The internationalization (i18n) library for Angular

4,662 stars589 forksTypeScriptMIT

At a glance

What is it?
ngx-translate/core is the MIT-licensed runtime translation library for Angular, now documented for Angular 16 to 21. Its value is switching languages without rebuilding; its cost is that translations ship as separate files you have to serve and keep in sync.
Who is it for?
Adopt ngx-translate/core if you need to switch languages at runtime, ship translations as JSON you can edit without a rebuild, or support a language set that changes after deployment. Do not adopt it if you only ever build one locale per bundle and want the compiler to catch missing strings, because Angular's built-in i18n does that and ngx-translate does not.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 6 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • ngx-translate/core4,662 ★ · +1
Star history
Repository2026-09-232026-11-22
ngx-translate/core4.7k4.7k

1 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem ngx-translate/core solves for Angular teams

Angular ships its own i18n, and it works by compiling one build per locale. That model is fine when the language set is fixed and known at build time. It stops being fine the moment a product manager asks for a language switcher in the header, or when the same bundle has to serve users whose locale is only known after login.

ngx-translate/core takes the other route. Translations live in files the application loads at runtime, and a service exposes them to templates and components. The README describes the project simply as "The internationalization (i18n) library for Angular." The audience follows from that: teams building Angular applications that need more than one language active in the same build, and teams whose translators want to edit JSON rather than touch source code.

The README also names a companion tool, BabelEdit, described as a "translation editor for ngx-translate files." That is a signal about where the project expects the workflow to sit: translation files as artifacts, edited by people who are not necessarily Angular developers.

How the runtime translation mechanism works

The architecture visible in the repository is a pnpm workspace with more than one publishable project. The root package.json defines a build-all script that runs "ng build ngx-translate && ng build http-loader", which confirms two separate packages: the core library and an HTTP loader. The core package holds the service and the pipe that resolve keys to strings. The loader package is a plugin that fetches translation JSON over HTTP.

That split is the design decision worth understanding. The core does not hardcode where translations come from. It asks a loader for them. The README points to documentation covering "additional interfaces and explains how to develop custom plugins," so the loader is an extension point, not a fixed dependency. A team that stores translations in a CMS, a database, or a bundled TypeScript object writes its own loader and leaves the HTTP one out.

The repository layout also shows a compat/ directory alongside projects/ and docs/. The README gives Angular 16 to 21 its own section, separate from its section on support for older versions, and the migration guides are split by major (v17 to v18, v16 to v17). Taken together, the project keeps compatibility shims and per-major migration documentation rather than a single code path for every Angular version.

Installing ngx-translate/core and wiring a first translation

The README does not carry install steps itself. It states that the documentation at ngx-translate.org "now covers installation on Angular 16+" and is split into smaller sections than the README. So the install instructions live on the site, not in the repository's front page. What the repository does confirm is the npm scope: the package is @ngx-translate/core, and the loader is a second package.

A minimal setup follows the shape the project documents: install both packages, register the translation module with a loader, then read a key in a template. The exact provider names and module APIs differ by Angular major, which is why the migration guides exist. Check the guide for your version before copying any snippet.

The repository's own scripts show how the two packages are built, which is the closest thing to a setup command the repository files contain:

bash
ng build ngx-translate && ng build http-loader

That script produces the core library and the HTTP loader as separate artifacts. With a loader registered, the application asks for a language and the loader fetches the matching file. The path convention is not fixed by the core; it is whatever the loader is configured to request.

In a template, the pipe form resolves a key against the currently active language. The README does not show the template syntax itself; the documentation site and the linked getting started tutorial are where the pipe usage is written out.

The thing to verify on your own setup is the loader's URL pattern and the file format it expects, because the README defers both to the documentation site.

Version support is the sharpest constraint in this project

The README is unusually direct about support scope: "We only support the current version with new updates and fixes." It then lists three options for anyone on an end-of-life release: upgrade, stay on the outdated version and accept "security risks and bugs," or buy commercial support from HeroDevs. That is a real boundary, not marketing hedging.

The practical consequence is that an Angular application pinned to an older major of ngx-translate is on its own for fixes. The documentation covers Angular 16 through 21, so anything below 16 falls outside the documented range. The most recent release is v18.1.0, published on 2026-10-27, following release candidates v18.1.0-rc.3 and v18.1.0-rc.4 on 2026-10-26. The repository's last push was on 2026-11-02, and its default branch is develop.

There is a second constraint that is easy to miss. The root package.json declares Angular dependencies at ^22.2.3, while the README's documented support range tops out at Angular 21. The repository's own workspace therefore builds against a newer Angular than the README advertises. That is not a contradiction in the library's runtime support, but it does mean the build tooling in the repository tracks a version ahead of the documented support matrix. If you are pinning Angular versions for a long-lived application, read the support range in the README as the promise and the package.json as the development environment.

Where ngx-translate/core is the wrong tool

Angular's built-in i18n compiles translations into the bundle. That gives you build-time validation: a missing or malformed translation fails the build rather than showing a raw key to a user. ngx-translate/core cannot offer that, because the core does not know the full key set at build time. It resolves keys at runtime against whatever the loader returned.

If your application ships one locale per deployment and your translation files are reviewed in the same pull request as the code, the built-in approach is a better fit. You get compiler-checked strings and one fewer runtime dependency. It is a decision about workflow, not about which library is better in the abstract.

The other case to avoid is a team that wants translations managed entirely by non-developers with no build step at all. ngx-translate still expects the application to register a loader and a language, and the translation files still have to be served from somewhere. It removes the rebuild, not the plumbing.

Migration and upgrade cost between majors

The README links two separate migration guides, one for v17 to v18 and one for v16 to v17, hosted at different paths on ngx-translate.org. The existence of per-major guides is informative: upgrading is treated as a documented task with its own steps, not as a drop-in version bump.

The README claims the maintainers "have worked hard to make upgrading simple," which is their characterization. What the repository supports is narrower: the project publishes migration documentation for each recent major, and the repository keeps a compat/ directory. Whether a given upgrade is simple depends on which APIs your application touches, and the guides are the place to determine that.

For planning purposes, the cost of staying current is one migration pass per Angular major, plus whatever the guide for that transition lists. The cost of not staying current is stated plainly in the README: no fixes, and a commercial support path through HeroDevs if you need security coverage on an EOL line. Teams that cannot schedule migration work should budget for that alternative rather than assume patches will keep arriving.

Licence and what it means for distribution

ngx-translate/core is MIT licensed, and the repository carries a LICENSE file at the top level. MIT is permissive: it allows use in closed-source products, modification, and redistribution, provided the copyright notice and licence text are preserved. For a front-end library that ends up in a browser bundle, the practical obligation is keeping the licence notice available to recipients.

There is one adjacent commercial element worth separating from the licence. The README names two commercial partners: BabelEdit as a recommended translation editor, and HeroDevs for security support on end-of-life versions. Neither is required to use the library, and neither changes the MIT terms of the core package itself. The HeroDevs offering only becomes relevant if you stay on a version the project no longer supports. This is a description of what the README states, not legal advice; if licence compliance matters to your organisation, have it reviewed.

Editorial conclusion

Adopt ngx-translate/core if you need to switch languages at runtime, ship translations as JSON you can edit without a rebuild, or support a language set that changes after deployment. Do not adopt it if you only ever build one locale per bundle and want the compiler to catch missing strings, because Angular's built-in i18n does that and ngx-translate does not. Before committing, verify three things: that your Angular version falls inside the 16 to 21 range the documentation covers, that the v17 to v18 migration guide's steps apply to your current major, and that only your current major is receiving fixes, since the README states older versions are not maintained and points to HeroDevs for commercial support instead.

Frequently asked questions

What is ngx-translate/core?

It is the internationalization library for Angular, published on npm under the @ngx-translate/core scope and licensed under MIT. The README describes it as the i18n library for Angular and points to ngx-translate.org for documentation covering Angular 16 and above.

How do I install ngx-translate/core?

The README does not carry install steps; it states that the documentation at ngx-translate.org covers installation on Angular 16+ and is split into smaller sections. The packages are @ngx-translate/core and the separate loader package, and the exact module setup differs by Angular major, so follow the guide for your version.

How does ngx-translate/core compare to Angular's built-in localize?

Angular's built-in i18n compiles one build per locale, while ngx-translate/core loads translations at runtime through a loader plugin, which is why the repository splits the core package from the HTTP loader. The trade-off is that runtime loading gives up build-time validation of missing keys.

What is the purpose of i18n?

Internationalization is what lets one application serve users in more than one language. In this project it takes the form of translation files the application loads at runtime, with a service and a pipe resolving keys to strings in the active language.

Official sources

  1. License: MIT
  2. ngx-translate/core on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/ngx-translate-core.svg)](https://hysenlabs.com/projects/ngx-translate-core)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/ngx-translate-core.svg)](https://hysenlabs.com/projects/ngx-translate-core)

Was this useful?