We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275765c commit 2acb1daCopy full SHA for 2acb1da
1 file changed
test/unit/catalog.js
@@ -21,6 +21,13 @@ describe("Catalog", function () {
21
assert.equal(catalog.getString("Hello"), "Hallo");
22
});
23
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
+
31
it("Should return original for unknown strings", function () {
32
var strings = { Hello: "Hallo" };
33
catalog.setStrings("nl", strings);
0 commit comments