GithubHelp home page GithubHelp logo

nciric / javascript-globalization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rxaviers/javascript-globalization

0.0 1.0 0.0 116 KB

The globalization (internationalization and localization) farm of the JavaScript community.

javascript-globalization's Introduction

JavaScript Globalization Overview

Overview page that shows what solutions exist for JavaScript globalization (internationalization and localization). What is missing. What overlaps. Why each library was created. What are their goals, strengths and weaknesses.

Summary

ECMA-402

The standard native implementation. It provides collation (string comparison), number formatting, and date and time formatting. The API was developed by a working group with members from Google, Microsoft, Mozilla (Norbert Lindenberg), Amazon, and IBM.

Strengths

  • Best performant on both speed and size. Speed, because it's native compiled code, which runs faster than interpreted JavaScript code from libraries. Size, because again it's native compiled code, which requires no extra JavaScript or resource loading (it relies on compiled i18n data) to be executed.

Weaknesses

  • Limited browser support (it may NOT be supported by your target client).
  • Lack of a resource loading mechanism (certain locale may NOT be available on your target client).

Links

Cldrpluralruleparser

Standalone library created by Santhosh Thottingal that provides CLDR plural rule parsing. Used by Wikimedia Foundation.

Strengths

  • No bugs due to outdated i18n content (it has no hard coded i18n data).

Links:

Globalize

A jQuery project, initially created to fullfil jQuery UI (datepicker and spinner widgets). It provides number formatting and parsing, date and time formatting and parsing, message formatting, and plural support.

The design goals are (a) to leverage the official CLDR JSON data, (b) allow users to load as much or as little data as they need, (c) avoid duplicating data if using multiple i18n libraries that leverage CLDR, and (d) run in browsers or node.js.

Strengths

  • No bugs due to outdated i18n content (it has no hard coded i18n data).
  • Parsing.
  • Allow different locale instances running simultaneously.

Links:

Messageformat.js

Standalone library created by Alex Sexton that provides ICU MessageFormat support, with built-in SelectFormat and pluggable PluralFormat.

Strengths

  • Precompile formatter for faster/smaller runtime.

Links:

Grid

ECMA-402
Native
Cldrpluralruleparser
santhoshtr/cldrpluralruleparser
Globalize
jquery/globalize
Messageformat.js
slexaxton/messageformat.js
Functionality
 
Date Format
new Date() ⟹ Oct 23, 2014, 9:00:00 AM
✔️ ✔️
Date Parse
Oct 23, 2014, 9:00:00 AM ⟹ new Date()
✔️
Relative Time Format
new Date() ⟹ last month
🔜
 
Number Format
12734.89 ⟹ 12,734.89
✔️ ✔️
Number Parse
12,734.89 ⟹ 12734.89
✔️
 
Currency Format
{EUR: 1000.00} ⟹ €1,000.00
✔️ 🔜
Currency Parse
€1,000.00 ⟹ {EUR: 1000.00}
🔜
 
Plural
3few
✔️ ✔️
Powered by santhoshtr/cldrpluralruleparser
Message Format
You have {count, plural,
one {1 item}
other {# items}} ⟹ You have 5 items
✔️
Powered by slexaxton/messageformat.js
✔️
Template integration
 
Collation ✔️
 
I18n data Compiled CLDR >= 25
 
Support
 
Environments Globals AMD
CommonJS
Globals
AMD
CommonJS
Globals
AMD
CommonJS
Globals
Node.js >= 0.12
en only by default
✔️ ✔️ ✔️
Browser Chrome: 24
Firefox: 29
Safari: N/A
Opera: 15
IE: 11
Reference MDN.
Chrome: (Current - 1) or Current
Firefox: (Current - 1) or Current
Safari: 5.1+
Opera: 12.1x, (Current - 1) or Current
IE: 8 (needs ES5 polyfill), IE9+
Mobile iOS: 6.1+
Android: 2.3, 4.0+

javascript-globalization's People

Contributors

rxaviers avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.