Skip to content

Commit

Permalink
added exampleLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond de Wit committed Jun 23, 2014
1 parent 03c4c64 commit 94a0dac
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
}
};

LocaleManager.prototype.getLocaleName = function() {
return this.locale.name;
};

LocaleManager.prototype.translate = function(key, interpolation) {
return this.polyglot.t(key, interpolation);
};
Expand Down
40 changes: 40 additions & 0 deletions src/exampleLocale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "en_GB"
, "phrases":
{
"keyInTemplate": "Value"
}
, "formatting":
{
"number":
{
"decimalMarker": "."
, "thousandMarker": ","
, "precision": 3
}
, "datetime":
{
"date": "MM-DD-YYYY"
, "datetime": "MM-DD-YYYY HH:mm"
}
, "money":
{
"default": "pound_GB"
, "euro":
{
"sign": "\u20AC"
, "precision": 2
}
, "dollar_US":
{
"sign": "$"
, "precision": 2
}
, "pound_GB":
{
"sign": "\u00A3"
, "precision": 2
}
}
}
}

0 comments on commit 94a0dac

Please sign in to comment.