JavaScript internationalization libraries

Updated Nov 2026

JavaScript internationalization libraries translate an application's messages and format them for each user's language and region. A message catalog maps each message key to its translation in every supported locale, including the plural forms that each language requires. These libraries localize the menus, notifications, and checkout flows of web and mobile apps sold in more than one market.

Popularity

i18next has the most monthly downloads in this comparison, at 132.0M.

LibraryMonthly downloadsStarsLast releaseLicense
i18next
134.0M
8.7KNov 2026MIT
intl-messageformat
119.3M
14.8KNov 2026BSD-3-Clause
Lingui
10.2M
5.9KNov 2026MIT
globalize
7.0M
4.8KSep 2025MIT
@inlang/paraglide-js
5.4M
813Nov 2026MIT
@messageformat/core
3.9M
1.8KOct 2026MIT
i18n-js
3.1M
239Oct 2026MIT
node-polyglot
2.3M
3.7KJul 2024BSD-2-Clause
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Manages translation resources and language selection across JavaScript applications.

Downloads / mo
134.0M
Stars
8.7K
Last release
27.1.5
License
MIT

Strengths

  • Organizes translations into namespaces. Split translation resources into logical groups for different parts of an application.
  • Escapes interpolated values by default. Use the default interpolation escaping unless another rendering layer handles it.

Limitations

  • ICU syntax needs an adapter. Add the ICU format plugin before using ICU messages instead of i18next syntax.
  • Remote resources need initialization. Wait for initialization before translating resources loaded through a backend.

Quickstart

From Getting started
$ npm install i18next
import i18next from 'i18next';
await i18next.init({ lng: 'en', resources: { en: { translation: { key: 'hello world' } } } });
console.log(i18next.t('key'));

intl-messageformat

Formats ICU messages into localized strings or structured rich-text results.

Downloads / mo
119.3M
Stars
14.8K
Last release
12.2.0
License
BSD-3-Clause

Strengths

  • Formats ICU plural and select. Use standard ICU placeholders for plural, select, and ordinal messages.
  • Reuses parsed message instances. Create a formatter once and reuse it for repeated formatting calls.

Limitations

  • Rich-text tags need value handlers. Provide a formatter for each rich-text tag used in a message.

Quickstart

From API reference
$ npm install intl-messageformat
import IntlMessageFormat from 'intl-messageformat';
const message = new IntlMessageFormat('Hello, {name}!', 'en');
console.log(message.format({ name: 'World' }));

Loads compiled translation catalogs, activates locales, and formats messages.

Downloads / mo
10.2M
Stars
5.9K
Last release
6.12.0
License
MIT

Strengths

  • Loads catalogs into one runtime. Activate a locale and translate its compiled messages through the shared i18n object.
  • Keeps parsing out of runtime. Ship compiled catalogs without a MessageFormat parser in the runtime package.

Limitations

  • Catalogs need a compilation step. Extract and compile catalog messages before loading their generated modules.
  • Macros need a build transform. Add Babel or SWC support when authoring messages with Lingui macros.

Quickstart

From README.md
$ npm install @lingui/core
import { i18n } from '@lingui/core';
i18n.loadAndActivate({ locale: 'en', messages: { Hello: 'Hello' } });
console.log(i18n.t('Hello'));

Lingui examples

From open-source projects on GitHub

globalize

Formats and parses numbers, dates, and currencies and formats ICU messages from Unicode CLDR data.

Downloads / mo
7.0M
Stars
4.8K
Last release
1.7.1
License
MIT

Strengths

  • Parses user-entered numbers and dates. Number and date strings typed in a user's own format convert into real numbers and dates.

Limitations

  • Locale data loads separately. The app supplies the CLDR locale data that the library leaves out.

Quickstart

From README.md
$ npm install globalize cldr-data
var Globalize = require( "globalize" );
Globalize.load( require( "cldr-data" ).entireSupplemental() );
Globalize.load( require( "cldr-data" ).entireMainFor( "en", "es" ) );
console.log(Globalize("en").formatDate(new Date()));

@inlang/paraglide-js

Compiles translation messages into typed ESM functions for Vite and other bundlers.

Downloads / mo
5.4M
Stars
813
Last release
3.2.2
License
MIT

Strengths

  • Unused messages drop from the bundle. Bundlers remove message functions that the app never calls.
  • Typed message keys. A misspelled message key or parameter fails at compile time.

Limitations

  • Messages need a compile step. Messages reach the app only after the compiler generates their functions.

Quickstart

From README.md
$ npx @inlang/paraglide-js init
import { m } from './paraglide/messages.js';
console.log(m.greeting({ name: 'World' }));

@inlang/paraglide-js examples

From open-source projects on GitHub

@messageformat/core

Compiles ICU MessageFormat strings into JavaScript functions that handle plural and gender forms.

Downloads / mo
3.9M
Stars
1.8K
Last release
3.4.1
License
MIT

Strengths

  • Covers every CLDR language. Plural rules come from the Unicode CLDR for every language it includes.

Limitations

  • No ChoiceFormat syntax. Messages written with the deprecated ChoiceFormat syntax need rewriting as plural or select.

Quickstart

From README.md
$ npm install @messageformat/core
import MessageFormat from '@messageformat/core';
const mf = new MessageFormat('en');
const message = mf.compile('Hello, {name}!');
console.log(message({ name: 'World' }));

@messageformat/core examples

From open-source projects on GitHub

Translates keys from a locale-keyed translations object, such as one exported from Ruby on Rails.

Downloads / mo
3.1M
Stars
239
Last release
4.5.4
License
MIT

Strengths

  • Bundles Rails base translations. Base translations format dates, numbers, and sentence connectors.
  • Loads translations lazily. The store method merges more translations in as each locale loads.

Quickstart

From README.md
$ npm install i18n-js
import { I18n } from 'i18n-js';
const i18n = new I18n({ en: { hello: 'Hi!' } });
console.log(i18n.t('hello'));

i18n-js examples

From open-source projects on GitHub

Manages translated phrase sets with variable substitution and plural forms.

Downloads / mo
2.3M
Stars
3.7K
Last release
2.6.0
License
BSD-2-Clause

Strengths

  • Interpolates variables and plural forms. Translate phrases with substitutions and a plural form selected by the supplied count.
  • Separates phrase sets by instance. Keep different locales’ phrase sets in separate instances for concurrent requests.

Limitations

  • Locale changes only affect plurals. Replace translated phrases separately when switching the locale used for plural rules.
  • Missing keys echo their name. Provide a fallback when displaying untranslated message keys is unacceptable.

Quickstart

From README.md
$ npm install node-polyglot
const Polyglot = require('node-polyglot');
const polyglot = new Polyglot({ phrases: { hello: 'Hello' } });
console.log(polyglot.t('hello'));

node-polyglot examples

From open-source projects on GitHub

FAQ

i18next is a translation framework for JavaScript that loads translation resources, selects the active language, and translates keys through its t function. It splits translations into namespaces that load from separate files.

ICU message format is a standard syntax for translated messages with plural, select, and number placeholders. IntlMessageFormat, Lingui, and @messageformat/core format ICU messages directly, while i18next needs a format plugin.

Lingui loads message catalogs compiled ahead of time and formats their ICU messages at runtime. Its CLI extracts and compiles the catalogs before the app loads them.

i18n-js translates keys from a locale-keyed translations object, such as one exported from Ruby on Rails. It bundles the Rails base translations for dates, numbers, and sentence connectors.

Paraglide JS compiles translation messages into typed ESM functions. Bundlers remove the message functions that an app never calls.

Lingui compiles catalogs ahead of time and ships a runtime without a MessageFormat parser. i18next loads translation resources at runtime and organizes them into namespaces.

For coding agents

Found your internationalization library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official