image

JavaScript internationalization (i18n) libraries

Notable JavaScript internationalization libraries that plays nicely with all major front-end frameworks

Internationalization is the design and development of a product, application or document content that enables easy localization for target audiences that vary in culture, region, or language.

Each language has different names for the days of the week and the months of the year, they also have different expectations for the structure of dates, such as what order the day, month and year are in.

In number formatting, not only does the character used to delineate number groupings and the decimal portion differ, but the placement of those characters differ as well.

A user using an application should be able to read and write dates and numbers in the format they are accustomed to, following libraries makes this possible.


i18next

image

www.i18next.com

I18next is an i18n-framework written in and for JavaScript. i18next goes beyond just providing the standard i18n features such as (plurals, context, interpolation, format). It provides you with a complete solution to localize your product from web to mobile and desktop.

FormatJS

image

formatjs.io

FormatJS is a modular collection of JavaScript libraries for internationalization that are focused on formatting numbers, dates, and strings for displaying to people. It includes a set of core libraries that build on the JavaScript Intl built-ins and industry-wide i18n standards, plus a set of integrations for common template and component libraries.

FBT

image

facebook.github.io

FBT is a framework for internationalizing user interfaces in JavaScript, developed by Facebook, designed to be not only powerful and flexible, but also simple and intuitive.

Polyglot.js

image

airbnb.io

Polyglot.js is a tiny I18n helper library written in JavaScript, made to work both in the browser and Node.js. It provides a simple solution for interpolation and pluralization, based off of Airbnb’s experience adding I18n functionality to its Backbone.js and Node apps.

Globalize

image

github.com

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data, designed to work both in the browser and Node.js, supports both AMD and CommonJS.

LinguiJS

image

lingui.js.org

Lingui is an easy yet powerful internationalization framework for JavaScript