add pluralization rules in ember for Chinese
This commit is contained in:
parent
542d54e6bf
commit
2c6b7d8bed
|
@ -53,8 +53,14 @@ I18n.PLACEHOLDER = /(?:\{\{|%\{)(.*?)(?:\}\}?)/gm;
|
|||
I18n.fallbackRules = {};
|
||||
|
||||
I18n.pluralizationRules = {
|
||||
en: function (n) {
|
||||
en: function(n) {
|
||||
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";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue