using default_locale for precompiled assets

This commit is contained in:
Maikel Linke
2015-10-22 10:50:29 +11:00
parent 7163664725
commit df34f6ef8e

View File

@@ -1,3 +1,3 @@
<%# Defines a global I18n object containing the language of the current locale %>
<%- I18n.backend.send(:init_translations) unless I18n.backend.initialized? %>
window.I18n = <%= I18n.backend.send(:translations)[I18n.locale].with_indifferent_access.to_json.html_safe %>
window.I18n = <%= I18n.backend.send(:translations)[I18n.default_locale].with_indifferent_access.to_json.html_safe %>