2014-12-07 15:05:24 -05:00
|
|
|
//= depend_on 'client.ar.yml'
|
|
|
|
//= require locales/i18n
|
|
|
|
<%= JsLocaleHelper.output_locale(:ar) %>
|
2016-08-26 15:52:15 -04:00
|
|
|
|
|
|
|
I18n.pluralizationRules['ar'] = function (n) {
|
|
|
|
if (n == 0) return "zero";
|
|
|
|
if (n == 1) return "one";
|
|
|
|
if (n == 2) return "two";
|
|
|
|
if (n%100 >= 3 && n%100 <= 10) return "few";
|
2016-12-17 10:48:39 -05:00
|
|
|
if (n%100 >= 11 && n%100 <= 99) return "many";
|
2016-08-26 15:52:15 -04:00
|
|
|
return "other";
|
|
|
|
};
|