Skip to content

Commit

Permalink
Fix Chinese pluralization bug in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 authored Dec 5, 2024
1 parent 2e29439 commit 76e4e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; },
Expand Down

0 comments on commit 76e4e75

Please sign in to comment.