mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 13:18:24 +08:00
Disable in development (js)
This commit is contained in:
parent
cb395662d0
commit
15905be788
@ -78,6 +78,9 @@ module JsLocaleHelper
|
|||||||
|
|
||||||
site_locale = SiteSetting.default_locale.to_sym
|
site_locale = SiteSetting.default_locale.to_sym
|
||||||
|
|
||||||
|
if Rails.env.development?
|
||||||
|
translations = load_translations(locale_sym)
|
||||||
|
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
|
||||||
@ -85,6 +88,7 @@ module JsLocaleHelper
|
|||||||
else
|
else
|
||||||
translations = load_translations_merged(locale_sym, site_locale, :en)
|
translations = load_translations_merged(locale_sym, site_locale, :en)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
message_formats = strip_out_message_formats!(translations[locale_str]['js'])
|
message_formats = strip_out_message_formats!(translations[locale_str]['js'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user