PACKAGE · INTERNATIONALIZATION

@formatjs/intl

Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

WEEKLY DOWNLOADS 5.3M
STARS 14.8K
FORKS 1.4K
OPEN ISSUES 7
GZIP SIZE 13.6 kB
UNPACKED SIZE 116.2 kB
DEPENDENCIES 5
LAST UPDATED 9mo ago
DOWNLOAD TRENDS

@formatjs/intl downloads · last 12 months

Download trends for @formatjs/intl1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.04.2M8.4M12.6M16.8MNov 2025FebMayAugOct 2026
@formatjs/intl
ABOUT @FORMATJS/INTL

@formatjs/intl provides JavaScript APIs for internationalizing applications: formatting dates, numbers, and strings, handling pluralization, and working with translations. It addresses the need to present localized content according to a user’s language and regional conventions rather than assembling formatted output by hand.

The package focuses on a shared internationalization API for application code, with capabilities spanning both translated messages and locale-sensitive values. It is intended for JavaScript developers implementing localization in web or other JavaScript interfaces; the available package information identifies React among its topics but does not specify a framework-specific integration model.

A typical approach is to use the package’s formatting capabilities where an application renders dates, numbers, or translated strings, and to account for plural forms in messages that vary with a count. The supplied description does not list exact method names, configuration options, or message syntax, so consult the package documentation for concrete API signatures and locale setup before adopting a particular pattern.

The package is categorized for internationalization and lists JavaScript, web, React, and translation among its topics. That makes it relevant to localization workflows in JavaScript interfaces, though the provided information does not establish support for a particular framework, build tool, server-rendering mode, or translation-file format.

The reported gzip bundle size is 13.6 kB, and the unpacked package size is 116.2 kB; these are distinct measurements and should not be treated as interchangeable. Version 6.2.1 is listed under the MIT license, with 5.4M weekly downloads, 14.8K GitHub stars, 1.4K forks, 7 open issues, and a last-updated date of 2026-11-23.

Because the description does not specify supported locales, fallback behavior, or the exact boundary between this package and other FormatJS components, verify those details against the version you plan to use. In particular, check whether its APIs alone cover your message extraction, translation management, and framework integration needs before choosing an implementation.

WHEN TO USE
  • When rendering dates or numbers according to locale-sensitive conventions, use @formatjs/intl’s formatting capabilities instead of constructing display strings manually.
  • When displaying translated interface text in JavaScript, use its string-formatting and translation-handling capabilities as part of the message-rendering path.
  • When message wording changes according to a count, use the package’s pluralization support to represent the appropriate plural form.
  • When a JavaScript interface needs dates, numbers, translated strings, and pluralized messages in one internationalization approach, evaluate this package across those rendering cases.
  • When working on a web or React-related localization workflow, assess @formatjs/intl as an internationalization library; confirm the specific framework integration pattern in its documentation.
  • When reviewing dependency constraints, compare the reported 13.6 kB gzip bundle size with your client-side budget and verify what functionality your application will include.
WHEN NOT TO USE
  • If the application only displays fixed text and never formats locale-sensitive values or translated messages, avoid adding this internationalization layer; keep the existing rendering logic until localization is required.
  • If you need only date or number formatting and want a narrower dependency, use the relevant built-in JavaScript internationalization APIs directly instead of adopting the package’s broader string and pluralization capabilities.
  • If your translation workflow depends on a specific message syntax or extraction process, do not assume it is supported; verify the version 6.2.1 documentation and use a workflow-compatible tool where necessary.
  • If you require a documented framework-specific integration, do not rely on the React topic label alone; confirm the integration APIs or use a framework adapter that explicitly meets that requirement.
  • If the application needs defined locale fallback or missing-translation behavior, verify that @formatjs/intl provides the required behavior before relying on it; otherwise implement that policy in the application or translation layer.
  • If a 13.6 kB gzip addition exceeds your client bundle budget, use built-in internationalization APIs or another narrower approach and measure the resulting application bundle.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 3
@formatjs/intl vs next-intl ★ 4.4K · 9.9M/wk @formatjs/intl vs @lingui/core ★ 5.9K · 3.0M/wk @formatjs/intl vs i18next ★ 8.7K · 37.0M/wk