app/assets/javascripts/i18n.js in i18n-js-3.9.1 vs app/assets/javascripts/i18n.js in i18n-js-3.9.2
- old
+ new
@@ -431,10 +431,10 @@
var pluralizer = this.pluralization.get(locale)
, pluralizerKeys = pluralizer(count)
, pluralizerKey
, message;
- if (isObject(translations)) {
+ if (translations && isObject(translations)) {
while (pluralizerKeys.length) {
pluralizerKey = pluralizerKeys.shift();
if (isSet(translations[pluralizerKey])) {
message = translations[pluralizerKey];
break;