From CommonJS Spec Wiki
Jump to: navigation, search

i18n is an important need for web applications. JavaScript already has unicode string support, but the ability to localize information is important as well.

Standardizing this might be difficult, but would likely be worthwhile because every high level web framework could use the same formats for string catalogs and the same API for currency display, etc.

i18n Proposal A

Prior Art

  • ICU
  • Babel
  • Dojo has a variation of require called requireLocalization which loads a JSON bundle based on locale and offers a string substitution utility. Dojo also transforms a subset of the XML from Unicode CLDR, the same repository which drives ICU, into something JSON-like. Dojo then implements its own Javascript based utilities on top of that for culturally-sensitive parsing and formatting.