I18n

From Jsorm

Jump to: navigation, search

Contents

Overview

i18n is the jsorm package that providers internationalization functions to JavaScript. Its features include:

  • Currency formatting and presentation functions
  • TimeZone management capabilities, specifically the ability to know the offset, daylight saving time and short-abbreviation for any supported location in any supported time, based on the Elsie zoneinfo database]
  • ResourceBundle locale string support, allowing the separation of presentation data in specific languages from within the code
  • Calendar manipulation, conversion, calculation and formatting features, including across and between different calendar systems

Release information is available.

Install

Browser

To install in a browser, simply include the appropriate file.

<script source="lib/jsormi-18n.js"></script>

At that point, the JSORM global object will be available, and have all the functions for each section above.

NodeJS

To install in node:

  1. Install using [npm http://npmjs.org]: npm install jsorm-i18n
  2. Require the library
  3. Use it
var i18n = require("jsorm-i18n");
jsorm.calendar(...);
Retrieved from "http://jsorm.com/wiki/I18n"
Personal tools