twitter_cldr

JavaScript implementation of the ICU (International Components for Unicode) that uses the Common Locale Data Repository to format dates, plurals, and more. Based on twitter-cldr-rb

TwitterCldr npm package.

Installation is easy with npm:

npm install twitter_cldr
var TwitterCldr = require('twitter_cldr').load('en');
var formatter = new TwitterCldr.DateTimeFormatter();
formatter.format(new Date(), {"type": "full"});

See usage documentation for twitter-cldr-js.

  • None.

See twitter-cldr-js for test suite.

Copyright 2012 Twitter, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0