diff --git a/app/assets/javascripts/locales.js.erb b/app/assets/javascripts/locales.js.erb index a4a8901d8..189974607 100644 --- a/app/assets/javascripts/locales.js.erb +++ b/app/assets/javascripts/locales.js.erb @@ -1,2 +1,6 @@ +<% +# first we need to force init translations or there wouldn't be any +I18n.backend.send(:init_translations) +%>; I18n.translations = <%= I18n.backend.send(:translations).to_json.html_safe %>; -I18n.fallbacks = true; \ No newline at end of file +I18n.fallbacks = true;