Skip to content

Commit 30744b5

Browse files
authored
Merge pull request #3 from tonylevid/patch-1
getPluralIndex return value bug fixed
2 parents 9a42f7a + b526d08 commit 30744b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/translator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
plurals[domain].fn = new Function('n', plurals[domain].code);
173173
}
174174

175-
return plurals[domain].fn.call(this, value);
175+
return plurals[domain].fn.call(this, value) + 0;
176176
}
177177

178178
function mergeTranslations(translations, newTranslations) {

0 commit comments

Comments
 (0)