From cbbe60e66e9dd250752b4d268f70ba127a829174 Mon Sep 17 00:00:00 2001 From: Qasem Hajizadeh Date: Tue, 7 Apr 2015 20:15:30 +0430 Subject: [PATCH] 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. --- app/assets/javascripts/locales/fa_IR.js.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/locales/fa_IR.js.erb b/app/assets/javascripts/locales/fa_IR.js.erb index 9ce1c17cd5c..ddad1cad48b 100644 --- a/app/assets/javascripts/locales/fa_IR.js.erb +++ b/app/assets/javascripts/locales/fa_IR.js.erb @@ -1,3 +1,7 @@ //= depend_on 'client.fa_IR.yml' //= require locales/i18n <%= JsLocaleHelper.output_locale(:fa_IR) %> + +I18n.pluralizationRules['fa_IR'] = function (n) { + return "other"; +};