From 76e4e7538e45b91dca9d3105c4bcc5a72f7a0d92 Mon Sep 17 00:00:00 2001 From: Liuzh Date: Fri, 6 Dec 2024 00:02:35 +0800 Subject: [PATCH] Fix Chinese pluralization bug in index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cf6b007..98098ff 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ var defaultPluralRules = { return lastTwo >= 11 ? 4 : 5; }, bosnian_serbian: russianPluralGroups, - chinese: function () { return 0; }, + chinese: function (n) { return n === 1 ? 0 : 1; }, croatian: russianPluralGroups, french: function (n) { return n >= 2 ? 1 : 0; }, german: function (n) { return n !== 1 ? 1 : 0; },