gettext-translator
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "gettext-translator", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Javascript gettext translator", | ||
@@ -5,0 +5,0 @@ "main": "src/translator.js", |
@@ -41,8 +41,10 @@ (function (root, factory) { | ||
var plural = translations['plural-forms'].split(';', 2); | ||
if (translations['plural-forms']) { | ||
var plural = translations['plural-forms'].split(';', 2); | ||
this.plurals[domain] = { | ||
count: parseInt(plural[0].replace('nplurals=', '')), | ||
code: plural[1].replace('plural=', 'return ') + ';' | ||
}; | ||
this.plurals[domain] = { | ||
count: parseInt(plural[0].replace('nplurals=', '')), | ||
code: plural[1].replace('plural=', 'return ') + ';' | ||
}; | ||
} | ||
@@ -49,0 +51,0 @@ this.dictionary[domain] = translations.messages; |
12254
241