Should not be active in dev mode

This commit is contained in:
Robin Ward 2015-12-23 16:39:56 -05:00
parent eab9ad7b27
commit d792c0a1d7

View file

@ -81,9 +81,9 @@ module JsLocaleHelper
site_locale = SiteSetting.default_locale.to_sym site_locale = SiteSetting.default_locale.to_sym
# if Rails.env.development? if Rails.env.development?
# translations = load_translations(locale_sym, force: true) translations = load_translations(locale_sym, force: true)
# else else
if locale_sym == :en if locale_sym == :en
translations = load_translations(locale_sym) translations = load_translations(locale_sym)
elsif locale_sym == site_locale || site_locale == :en elsif locale_sym == site_locale || site_locale == :en