We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c2d1f commit cf47e9eCopy full SHA for cf47e9e
src/translator.js
@@ -38,12 +38,14 @@
38
return this;
39
}
40
41
- var plural = translations['plural-forms'].split(';', 2);
+ if (translations['plural-forms']) {
42
+ var plural = translations['plural-forms'].split(';', 2);
43
- this.plurals[domain] = {
44
- count: parseInt(plural[0].replace('nplurals=', '')),
45
- code: plural[1].replace('plural=', 'return ') + ';'
46
- };
+ this.plurals[domain] = {
+ count: parseInt(plural[0].replace('nplurals=', '')),
+ code: plural[1].replace('plural=', 'return ') + ';'
47
+ };
48
+ }
49
50
this.dictionary[domain] = translations.messages;
51
0 commit comments