Add pluralization rule to fa_IR.js.erb
Persian does not distinguish between the singular and plural forms of nouns in the same way as English does. For numbered elements, always return the 'other' key from the translation file.
This commit is contained in:
parent
768d170d12
commit
cbbe60e66e
|
@ -1,3 +1,7 @@
|
||||||
//= depend_on 'client.fa_IR.yml'
|
//= depend_on 'client.fa_IR.yml'
|
||||||
//= require locales/i18n
|
//= require locales/i18n
|
||||||
<%= JsLocaleHelper.output_locale(:fa_IR) %>
|
<%= JsLocaleHelper.output_locale(:fa_IR) %>
|
||||||
|
|
||||||
|
I18n.pluralizationRules['fa_IR'] = function (n) {
|
||||||
|
return "other";
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue