BASE

FormatJS

FormatJS

Web framework / library · Free

JavaScript internationalization tools: format messages, dates, and numbers and help manage interface translations.

Also known as: formatjs/formatjs; formatjs; react-intl; intl-monorepo

Resource illustration: FormatJS

Open resource ↗

What you can use for free

Localization through React Intl and separately licensed packages.

Paid features and costs

Translation services and hosting are not included in the library.

Access and limitations

Localization through React Intl and separately licensed packages. Translation services and hosting are not included in the library.

Use cases

  • Display localized messages and formats
  • Connect message, date, and number formatting to the selected locale

Example workflow

A possible workflow; this is not a report of hands-on testing.

Display localized messages and formats.

Before you start

  • Web application source code and the intended workflow.
  • The project's framework and runtime version.

Steps

  1. Describe message IDs and the locale of interface data.
  2. Connect message, date, and number formatting to the selected locale.
  3. Add real data and error handling; check the production build.

Check your result

  • The workflow works after a page refresh and with invalid data.
  • The bundle, server rendering, and supported browsers suit the project.

Choosing FormatJS

Display localized messages and formats

Choose this when

  • Display localized messages and formats
  • Connect message, date, and number formatting to the selected locale

Requirements

  • Check the Intl APIs and locale data in use; React Native documentation separately discusses an Intl-enabled runtime or polyfills.

Things to consider

  • Costs and limits of free use: Translation services and hosting are not included in the library.
  • Terms of use: The React Intl package uses BSD-3-Clause; check each other FormatJS package's own LICENSE.
  • Localized formatting support depends on the runtime and loaded locale data; installing the React package alone does not add all data.

Frequently asked questions

What can you use for free in FormatJS?

Localization through React Intl and separately licensed packages.

What additional costs might arise with FormatJS?

Translation services and hosting are not included in the library.

What terms of use matter for FormatJS?

The React Intl package uses BSD-3-Clause; check each other FormatJS package's own LICENSE.

How do you get started with FormatJS?

Describe message IDs and the locale of interface data. Connect message, date, and number formatting to the selected locale. Add real data and error handling; check the production build.

What runtime and locale support does React Intl need?

React Intl uses standard Intl.DateTimeFormat, NumberFormat, PluralRules, and RelativeTimeFormat. If these APIs are absent, the corresponding polyfills and locale data are required. Intl.DisplayNames is required for display name functions. In React, components and useIntl receive configuration through IntlProvider.

License

The React Intl package uses BSD-3-Clause; check each other FormatJS package's own LICENSE.

Each asset has its own rights

A catalog or gallery does not grant one license for all its content. Check code, fonts, images, models, and templates under the specific resource's license. Studying an idea and creating your own implementation is a different use case from copying source code or assets.

Technologies and topics

  • FormatJS
  • web
  • Development

Sources

Other resources