From 612a318db4c40310b334d41f4e6b38318eea7af2 Mon Sep 17 00:00:00 2001 From: k0uki Date: Sun, 5 Jul 2015 21:07:03 +0900 Subject: [PATCH] pluralizationRules for Japanese translation --- app/assets/javascripts/locales/ja.js.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/locales/ja.js.erb b/app/assets/javascripts/locales/ja.js.erb index 2bb653952a6..b258ba577d5 100644 --- a/app/assets/javascripts/locales/ja.js.erb +++ b/app/assets/javascripts/locales/ja.js.erb @@ -1,3 +1,7 @@ //= depend_on 'client.ja.yml' //= require locales/i18n <%= JsLocaleHelper.output_locale(:ja) %> + +I18n.pluralizationRules['ja'] = function (n) { + return n === 0 ? ["zero", "none", "other"] : "other"; +};