diff --git a/javascript/i18n.js b/javascript/i18n.js index c229dc6c5..4ce469768 100644 --- a/javascript/i18n.js +++ b/javascript/i18n.js @@ -72,11 +72,8 @@ ss.i18n = { }, addDictionary: function(locale, dict) { - if(typeof(this.lang[locale])) { - this.lang[locale] = dict; - } else { - this.lang[locale] += dict; - } + if(!this.lang[locale]) this.lang[locale] = $H(); + this.lang[locale] = $H(this.lang[locale]).merge(dict); }, /**