Skip to content

Commit

Permalink
Release 0.2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Nov 29, 2015
1 parent b51eca0 commit ec79f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/filters/plural.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports['default'] = function (value, part, attrs, metadata) {
var numberValue = Number(value);

var plural = (0, _utilsGetPlural2['default'])(locale, 'en');
var pluralValue = plural(locale, numberValue);
var pluralValue = plural(numberValue);
var offset = getValue(metadata, 'offset', 0);

var smartValue = offset ? numberValue - offset : value;
Expand All @@ -52,7 +52,7 @@ exports['default'] = function (value, part, attrs, metadata) {

var key = typeof arg.key === 'string' ? arg.key.toLowerCase() : arg.key;
if (key[0] === '=') {
var keyValue = parseInt(key.substr(1), 10);
var keyValue = Number(key.substr(1));
return keyValue === numberValue;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "translate-maker",
"version": "0.2.17",
"version": "0.2.18",
"description": "Universal translation library",
"main": "dist/index.js",
"keywords": [
Expand Down

0 comments on commit ec79f85

Please sign in to comment.