Polyglot.js
Keep, but not for new work. 9th of 9 translation libraries.
Polyglot.js is Airbnb's tiny helper for looking up translated phrases, filling in placeholders and picking plural forms. It still works, but it has had no release since July 2024 and no commits in the past year. It has no date or number formatting and no ICU message support. For new work, i18next, FormatJS or Lingui do the job much better.
Best for: Existing apps, such as react-admin projects, that already use it and only need phrase lookup, placeholders and simple plurals.
Scores
Overall4.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
It is a simple, safe tool that still works, but development has stopped. It also lacks number and date formatting, ICU messages and TypeScript types, which every main peer offers. Keep it where it already runs, such as in react-admin, and start new projects with i18next, FormatJS, Lingui or Paraglide.
- github commitsLastYear: No development in the last year.
- lokalise.com/blog/comparing-libraries-translating-js-apps: Has no formatting helpers.
- peers downloadsLast4Weeks: i18next has 140M and react-intl 18M, both growing faster.
GPT-6.2 Sol: 4.5, likely 3.4 to 5.6
Polyglot.js remains a practical fit for React-admin and existing apps whose catalogs and formatting are already in place. For most new apps, i18next covers more of the localization job and has a much more active release cadence. The range reflects how much a team values a small API and how much localization it already handles elsewhere.
- i18next.com/translation-function/formatting: i18next provides built-in number, date and currency formatting.
- marmelab.com/react-admin/TranslationSetup.html: Polyglot remains a supported integration in React-admin.
- github.commitsLastYear, npm.latestPublishedAt, peers: Polyglot has no recent commits or releases and several peers ship regularly.
- open-pioneer.dev/trails-docs/research/i18n_overview: Independent comparison shows i18next covers more of the localization workflow.
Needed by many5.1
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many web apps need translation, and Polyglot runs on any framework, in the browser and in Node. Its minimal take covers only phrase lookup and plurals, which narrows the group it fully serves. Teams that also need dates and numbers must add something else.
- github.com/airbnb/polyglot.js: Runs in the browser and in Node and does not depend on any framework.
- lokalise.com/blog/comparing-libraries-translating-js-apps: Described as a library for simple localization tasks.
GPT-6.2 Sol: 4.2, likely 3.0 to 5.5
Multilingual interfaces are a recurring need across web apps, and Polyglot.js works in browsers and Node.js without tying teams to a framework. Its narrower fit is teams that already supply translated phrases and handle number and date formatting separately. Web data shows how common locale targeting is, but the share of developers who need this particular setup is harder to estimate.
- almanac.httparchive.org/en/2025/seo#internationalization: About one in five measured pages used hreflang.
- npmjs.com/package/node-polyglot?activeTab=versions: Browser and Node.js support with app-supplied phrase dictionaries.
- open-pioneer.dev/trails-docs/research/i18n_overview: Independent comparison identifies its focused feature set.
Helps a lot4.4
How well does it do the job for those who need it?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
It does interpolation and basic plurals well, but the category's job also covers numbers and dates, and Polyglot formats neither. It does not use ICU messages or CLDR plural data, ships no types and has no tooling. i18next, FormatJS and Lingui do the same job clearly better.
- github.com/airbnb/polyglot.js: The README says the locale is used only for pluralization. Plurals use the '||||' syntax.
- lokalise.com/blog/comparing-libraries-translating-js-apps: No date, time or number helpers, and more limited plurals than intl-messageformat.
- npm hasTypes: The package ships no TypeScript types.
- npm-compare.com/i18next,node-polyglot,react-intl: Has no framework integrations, unlike i18next.
GPT-6.2 Sol: 5.2, likely 4.1 to 6.3
Version 2.6.0 has a straightforward API, clear examples for basic lookup, and configurable warnings for missing keys. It leaves number and date formatting to the app, and an open report describes incorrect plural selection when instances use different custom rules for the same locale. Community declarations help editors and coding agents with the API, while message keys and placeholders remain unchecked. Current comparative runtime measurements are sparse.
- npmjs.com/package/node-polyglot?activeTab=versions: Version 2.6.0 documents interpolation, plurals and missing-key behavior.
- phrase.com/blog/posts/the-best-javascript-i18n-libraries: Independent comparison documents the formatting and extraction gaps.
- github.com/airbnb/polyglot.js/pull/192: Open fix for custom plural rules interfering across instances.
- github.com/airbnb/polyglot.js/issues/17: Users ask for documentation of plural-form ordering.
- github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node-polyglot/index.d.ts: Community declarations accept string keys and arbitrary interpolation values.
Holds up over time3.1
Will it still be a good choice in two years?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
The repository had no commits and no releases in the past year. The last npm version, 2.6.0, came out in July 2024. It is not archived, and Airbnb owns it, but the ecosystem has moved on to i18next, FormatJS, Lingui and Paraglide. Its narrow scope means it needs little upkeep, which keeps it from scoring lower.
- github commitsLastYear: 0 commits in the last year.
- npm latestPublishedAt: Last published 2024-07-11. 0 versions in the last year.
- github openPullRequests: 8 pull requests are open, against 63 merged in the project's history.
- npmjs.com/package/polyglot.js: A community fork exists to add pure ESM, which points to needs the original does not meet.
GPT-6.2 Sol: 3.2, likely 2.0 to 4.6
The repository remains open, with zero commits in the past year and no npm release since July 2024. The release pull request and several older fixes are still open, while i18next and FormatJS both shipped updates in November 2026. The small API and continued downstream use make it plausible that existing integrations will keep working, but long-term maintainer coverage is unclear.
- github.commitsLastYear, github.archived, npm.latestPublishedAt: Zero commits in the past year and a July 2024 npm release.
- github.com/airbnb/polyglot.js/pulls: The release pull request and several older changes remain open.
- peers: i18next and FormatJS released in November 2026.
- marmelab.com/react-admin/TranslationSetup.html: Current React-admin docs still use the Polyglot provider.
Used widely4.7
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It has 2.4M downloads per 4 weeks and 31k dependent repositories, which is real use. A large share comes in through react-admin's ra-i18n-polyglot rather than direct choice. Downloads grew 2.46x in a year, well below the 4.1 median, so it is losing ground. Every peer except Intlayer and typesafe-i18n has far more downloads.
- npm downloadsLast4Weeks: 2.43M now, against 0.99M a year before: a 2.46x ratio, below the 4.1 median.
- dependents repos: 31,011 repositories, against 50k for i18next and 58k for FormatJS.
- socket.dev/npm/package/ra-i18n-polyglot: React-admin's i18n provider wraps Polyglot, which adds installs that nobody chose directly.
- bluesky posts: 0 posts and 0 Hacker News stories: little current attention.
GPT-6.2 Sol: 4.8, likely 3.6 to 6.0
Ecosyste.ms found about 31,000 dependent repositories, fewer than for i18next, FormatJS, or Vue I18n. Four-week npm installs rose from 990,000 to 2.43 million, or 2.46×, below the catalog median of 4.1×. React-admin installs it indirectly, and the available counts cannot show how many new projects deliberately chose it.
- dependents.repos, dependents.packages, peers: 31,011 indexed repositories and 267 packages depend on it.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew 2.46× against a 4.1× catalog median.
- github.stars, bluesky.posts, hackerNews.stories: 3,718 stars and no matching Bluesky posts or Hacker News stories in the bundle.
- github.com/marmelab/react-admin/blob/master/packages/react-admin/package.json: React-admin installs the Polyglot provider as a dependency.
- github.com/marmelab/react-admin/blob/master/packages/ra-i18n-polyglot/package.json: The provider depends on node-polyglot.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
Airbnb built and once used it, and react-admin builds on it. Those are real backers, but they are old or indirect. Current comparisons call it fine for simple setups and recommend other libraries for anything larger. It appears in no surveys and no recent independent write-ups.
- airbnb.io/polyglot.js: Built from Airbnb's own Backbone and Node apps.
- phrase.com/blog/posts/the-best-javascript-i18n-libraries: Comparison that points teams to FormatJS and i18next for full features.
- lokalise.com/blog/comparing-libraries-translating-js-apps: Called minimalist and suited only to simple projects.
GPT-6.2 Sol: 6.1, likely 4.9 to 7.2
React-admin ships a Polyglot-based provider, and Decap CMS lists it as a runtime dependency. A developer also reports years of successful use in apps supporting about 60 languages. Those examples support its use for message lookup, with limited recent survey and benchmark evidence on how it compares with peers.
- marmelab.com/react-admin/TranslationSetup.html: React-admin documents its Polyglot provider for multilingual apps.
- github.com/decaporg/decap-cms/blob/main/packages/decap-cms-core/package.json: Decap CMS Core declares it as a runtime dependency.
- reddit.com/r/reactjs/comments/1cy46it/have_you_localized_your_app_in_other_languages: A developer reports a long-running multilingual deployment.
- phrase.com/blog/posts/the-best-javascript-i18n-libraries: Independent review finds it suitable for basic translation needs.
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
OSV lists no advisories, it has only 3 small dependencies, and the BSD-2-Clause licence is permissive. There is no OpenSSF Scorecard for it, and the inactive maintenance means any future issue may be fixed slowly. Its attack surface is small.
- advisories total: 0 advisories.
- npm dependencies: 3 dependencies.
- scorecard: No Scorecard data.
- npm license: BSD-2-Clause.
GPT-6.2 Sol: 7.2, likely 5.8 to 8.5
The package has three direct runtime dependencies, a permissive BSD-2-Clause licence, and no advisories in the OSV snapshot. The 2.6.0 release pull request is still open even though the version was published to npm. The missing OpenSSF Scorecard, unclear publishing access, and slow release cadence leave uncertainty about how quickly a security fix would ship.
- advisories.total, scorecard, npm.dependencies, npm.license: Zero OSV advisories, no Scorecard, three direct dependencies and BSD-2-Clause.
- github.com/airbnb/polyglot.js/blob/1acb012/package.json: The release commit lists the runtime dependencies and npm publish hook.
- github.com/airbnb/polyglot.js/pull/185: A collaborator confirmed the npm publish while the release PR stayed open.
Good
- Very small and simple: create an instance, call extend() to add phrases and t() to look one up, with %{var} placeholders.
- Each instance holds its own phrases, so server requests in different locales do not interfere with each other.
- No known security advisories, only a few small dependencies and a permissive BSD-2-Clause licence.
- React-admin's default i18n provider is built on it, which keeps it installed in many admin apps.
Bad
- It has no date, number or currency formatting, so you must add the Intl API or another library yourself.
- Plurals use a custom '||||' syntax with smart_count instead of ICU or CLDR rules, and the built-in plural rules are limited.
- No commits in the last year and no release since 2.6.0 in July 2024, so the project looks inactive.
- It ships no TypeScript types (you need @types/node-polyglot), and it has no tooling for extracting messages, loading files or type-safe keys.
The numbers
- npm downloads, 4 weeks
- 2.4M ×2.5 in a year
- GitHub stars
- 3.7k
- Commits, 12 months
- 0
- npm version
- 2.6.0 Jul 2024
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- BSD-2-Clause
Read on 21 November 2026 from GitHub (airbnb/polyglot.js), npm (node-polyglot), OSV and the OpenSSF Scorecard.
Translation libraries
- 8.3i18next
- 8.2next-intl
- 7.8Vue I18n
- 7.5Lingui
- 7.5Paraglide JS
- 7.3FormatJS
- 5.8Intlayer
- 4.3typesafe-i18n
- 4.0Polyglot.js