Globalize (JavaScript library)

From Wikipedia, the free encyclopedia

Original author(s)Rafael Xavier de Souza
Initial releaseApril 23, 2015; 9 years ago (2015-04-23)
Stable release
1.7.0[1] Edit this on Wikidata / 2 August 2021; 3 years ago (2 August 2021)
Globalize
Original author(s)Rafael Xavier de Souza
Developer(s)jQuery Foundation
Initial releaseApril 23, 2015; 9 years ago (2015-04-23)
Stable release
1.7.0[1] Edit this on Wikidata / 2 August 2021; 3 years ago (2 August 2021)
Repository
Written inJavaScript
PlatformSee Browser support
TypeJavaScript library
LicenseMIT License[2]
Websitegithub.com/globalizejs/globalize

Globalize is a cross-platform JavaScript library for internationalization and localization that uses the Unicode Common Locale Data Repository (CLDR).

Globalize provides number formatting and parsing, date and time formatting and parsing, currency formatting, unit formatting, message formatting (ICU message format pattern), and plural support.

Design Goals:

  • Leverages the Unicode CLDR data and follows its UTS#35 specification.
  • Keeps code separate from i18n content. Doesn't host or embed any locale data in the library. Empowers developers to control the loading mechanism of their choice.
  • Allows developers to load as much or as little data as they need. Avoids duplicating data if using multiple i18n libraries that leverage CLDR.
  • Keeps code modular. Allows developers to load the i18n functionalities they need.
  • Runs in browsers and Node.js, consistently across all of them.
  • Makes globalization as easy to use as jQuery.

Globalize is based on the Unicode Consortium's Common Locale Data Repository (CLDR), the largest and most extensive standard repository of locale data available. CLDR is constantly updated and is used by many large applications and operating systems, to always have access to the most accurate and up-to-date locale data.

Usage

History

References

Related Articles

Wikiwand AI