Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created June 2, 2015 12:17
Show Gist options
  • Save rxaviers/56b3b2716c97a30a1994 to your computer and use it in GitHub Desktop.
Save rxaviers/56b3b2716c97a30a1994 to your computer and use it in GitHub Desktop.
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
@@ -4,11 +4,11 @@
if ( typeof define === "function" && define.amd ) {
// AMD
- define("compiled-i18n-data", ["globalize-runtime/plural","globalize-runtime/message"], factory );
+ define("compiled-i18n-data", ["globalize-runtime/number","globalize-runtime/plural","globalize-runtime/message","globalize-runtime/currency"], factory );
} else if ( typeof exports === "object" ) {
// Node, CommonJS
- module.exports = factory( require("globalize/dist/globalize-runtime/plural"), require("globalize/dist/globalize-runtime/message") );
+ module.exports = factory( require("globalize/dist/globalize-runtime/number"), require("globalize/dist/globalize-runtime/plural"), require("globalize/dist/globalize-runtime/message"), require("globalize/dist/globalize-runtime/currency") );
} else {
// Global
@@ -18,11 +18,17 @@
var validateParameterTypeNumber = Globalize._validateParameterTypeNumber;
var validateParameterPresence = Globalize._validateParameterPresence;
+var numberRound = Globalize._numberRound;
+var numberFormat = Globalize._numberFormat;
+var numberFormatterFn = Globalize._numberFormatterFn;
var pluralGeneratorFn = Globalize._pluralGeneratorFn;
var validateParameterTypeMessageVariables = Globalize._validateParameterTypeMessageVariables;
var messageFormat = Globalize._messageFormat;
var messageFormatterFn = Globalize._messageFormatterFn;
+var currencyNameFormat = Globalize._currencyNameFormat;
+var currencyFormatterFn = Globalize._currencyFormatterFn;
+Globalize.b957349717 = numberFormatterFn(["'$'",,1,2,2,,,0,3,,"","'$'#,##0.00","-'$''$'#,##0.00","-'$'","",numberRound(),"∞","NaN",{".":".",",":",","%":"%","+":"+","-":"-","E":"E","‰":"‰"},]);
Globalize.a940276218 = pluralGeneratorFn(function(n) {
var s = String(n).split('.'), v0 = !s[1];
return (n == 1 && v0) ? 'one' : 'other';
@@ -48,6 +54,9 @@ Globalize.b169692813 = messageFormatterFn((function( ) {
Globalize.b1669168544 = messageFormatterFn((function( ) {
return function (d) { return "Clear completed"; }
})());
+Globalize.a2053015180 = messageFormatterFn((function( ) {
+ return function (d) { return "Get all this for free " + d.price; }
+})());
Globalize.b1299367534 = messageFormatterFn((function( ) {
return function (d) { return "Double-click to edit a todo"; }
})());
@@ -57,6 +66,7 @@ Globalize.b1703217265 = messageFormatterFn((function( ) {
Globalize.b351831116 = messageFormatterFn((function( ) {
return function (d) { return "Active"; }
})());
+Globalize.b1223214380 = currencyFormatterFn(Globalize("en").numberFormatter({"raw":"'$'#,##0.00"}));
return Globalize;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment