use deep merge. since we now have nested js, we need to do the merge recursively; fixes #2660

This commit is contained in:
Maxwell Salzberg 2012-01-14 02:49:34 -08:00
parent b10eb9e56a
commit 0b6c5421c3

View file

@ -21,7 +21,7 @@ module ApplicationHelper
if language != DEFAULT_LANGUAGE
translations = I18n.t('javascripts', :locale => language)
defaults.update(translations)
defaults.deep_merge!(translations)
end
defaults