mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
add pluralization rules in ember for Chinese
This commit is contained in:
@ -55,6 +55,12 @@ I18n.fallbackRules = {};
|
|||||||
I18n.pluralizationRules = {
|
I18n.pluralizationRules = {
|
||||||
en: function(n) {
|
en: function(n) {
|
||||||
return n === 0 ? ["zero", "none", "other"] : n === 1 ? "one" : "other";
|
return n === 0 ? ["zero", "none", "other"] : n === 1 ? "one" : "other";
|
||||||
|
},
|
||||||
|
"zh_CN": function(n) {
|
||||||
|
return n === 0 ? ["zero", "none", "other"] : "other";
|
||||||
|
},
|
||||||
|
"zh_TW": function(n) {
|
||||||
|
return n === 0 ? ["zero", "none", "other"] : "other";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user