mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
implement pluralization for server-side and js
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
//= depend_on 'client.cs.yml'
|
||||
//= require locales/i18n
|
||||
<%= JsLocaleHelper.output_locale(:cs) %>
|
||||
|
||||
I18n.pluralizationRules['cs'] = function (n) {
|
||||
if (n == 0) return ["zero", "none", "other"];
|
||||
if (n == 1) return "one";
|
||||
if (n >= 2 && n <= 4) return "few";
|
||||
return "other";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user