Run:
npm install globalize cldr-data
node myFormatter.js
node myFormatter.js es
node myFormatter.js fr
node myFormatter.js it
node myFormatter.js de
node myFormatter.js ar
node myFormatter.js zh
diff --git a/examples/react-globalize/dist/app/en.js b/examples/react-globalize/dist/app/en.js | |
index 3121e5c..ee5fbea 100644 | |
--- a/examples/react-globalize/dist/app/en.js | |
+++ b/examples/react-globalize/dist/app/en.js | |
@@ -30,6 +30,9 @@ Globalize.a940276218 = pluralGeneratorFn(function(n) { | |
Globalize.a61508260 = messageFormatterFn((function( ) { | |
return function (d) { return "Part of [TodoMVC/]"; } | |
})()); | |
+Globalize.b690639996 = messageFormatterFn((function( ) { | |
+ return function (d) { return "Get all this for free"; } |
commit b7fffae2b041cef33076194152dbf4bb8d9ea08b | |
Author: Rafael Xavier de Souza <[email protected]> | |
Date: Tue Jun 2 08:40:24 2015 -0300 | |
Addition | |
diff --git a/examples/react-globalize/dist/app/en.js b/examples/react-globalize/dist/app/en.js | |
index 3121e5c..ec0f2d8 100644 | |
--- a/examples/react-globalize/dist/app/en.js | |
+++ b/examples/react-globalize/dist/app/en.js |
diff --git a/Gruntfile.js b/Gruntfile.js | |
index a10a39a..396c33e 100644 | |
--- a/Gruntfile.js | |
+++ b/Gruntfile.js | |
@@ -88,22 +88,28 @@ grunt.registerTask( "build-demos", function() { | |
return a.title.toLowerCase() > b.title.toLowerCase() ? 1 : -1; | |
} | |
- // We hijack the jquery-ui checkout from download.jqueryui.com | |
- this.requires( "build-download" ); |
Run:
npm install globalize cldr-data
node myFormatter.js
node myFormatter.js es
node myFormatter.js fr
node myFormatter.js it
node myFormatter.js de
node myFormatter.js ar
node myFormatter.js zh
Duplicate bundles:
af
af-NA
am
ar
ar-AE
ar-BH
ar-DJ
--- CLDR 26 2015-03-20 00:10:18.516498286 -0300 | |
+++ CLDR 27 2015-03-20 00:20:19.984472991 -0300 | |
@@ -1,18 +1,9 @@ | |
-aa | |
-aa-DJ | |
-aa-ER | |
-aa-ET | |
af | |
af-NA | |
-af-ZA |
TBD
isMultiLine = isTextarea || isInput && this.element.prop( "isContentEditable" ); |
var Globalize = require("globalize"); | |
Globalize.load(/* needed content */); | |
module.exports = Globalize.currencyFormatter( "USD" ); |
Initially, I was wondering what if we stick using useCustomaryWords in its boolean form plus always using the customary word for 0. For example, .formatRelativeTime( count, unit, options )
:
(count, unit) | options = {} |
options = { useCustomaryWords: false } |
---|---|---|
( 2, "day" ) |
"in 2 days" |
"in 2 days" |
( 1, "day" ) |
"tomorrow" |
"in 1 day" |
( 0, "day" ) |
"today" |
"today" |
( -1, "day" ) |
"yesterday" |
"1 day ago" |
( -2, "day" ) |
"2 days ago" |
"2 days ago" |