mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Should not be active in dev mode
This commit is contained in:
parent
eab9ad7b27
commit
d792c0a1d7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue