Skip to content

Commit 2acb1da

Browse files
committed
chore: arabic (ar) default plural for 1 maps correctly (unit test)
1 parent 275765c commit 2acb1da

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/unit/catalog.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ describe("Catalog", function () {
2121
assert.equal(catalog.getString("Hello"), "Hallo");
2222
});
2323

24+
it("Can set and retrieve strings when default plural is not zero", function () {
25+
var strings = { Hello: "Hallo" };
26+
catalog.setStrings("ar", strings);
27+
catalog.setCurrentLanguage("ar");
28+
assert.equal(catalog.getString("Hello"), "Hallo");
29+
});
30+
2431
it("Should return original for unknown strings", function () {
2532
var strings = { Hello: "Hallo" };
2633
catalog.setStrings("nl", strings);

0 commit comments

Comments
 (0)