mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:23:00 +08:00
Should not be active in dev mode
This commit is contained in:
@ -81,9 +81,9 @@ module JsLocaleHelper
|
||||
|
||||
site_locale = SiteSetting.default_locale.to_sym
|
||||
|
||||
# if Rails.env.development?
|
||||
# translations = load_translations(locale_sym, force: true)
|
||||
# else
|
||||
if Rails.env.development?
|
||||
translations = load_translations(locale_sym, force: true)
|
||||
else
|
||||
if locale_sym == :en
|
||||
translations = load_translations(locale_sym)
|
||||
elsif locale_sym == site_locale || site_locale == :en
|
||||
|
Reference in New Issue
Block a user