Skip to content

Commit 0fd91a8

Browse files
committed
fix: arabic (ar) default plural for 1 maps correctly
1 parent d5ccbc5 commit 0fd91a8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/catalog.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ angular.module('gettext').factory('gettextCatalog', function (gettextPlurals, ge
183183
// Expand single strings for each context.
184184
for (var context in val) {
185185
var str = val[context];
186-
val[context] = angular.isArray(str) ? str : [str];
186+
if (!angular.isArray(str)) {
187+
val[context] = [];
188+
val[context][gettextPlurals(language, 1)] = str;
189+
}
187190
}
188191
this.strings[language][key] = val;
189192
}

0 commit comments

Comments
 (0)