mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
DEV: Use locale fallback even in development mode
Making dev behave differently than prod is a bad idea.
This commit is contained in:
parent
825ae86857
commit
86546bb5c6
@ -116,9 +116,7 @@ module JsLocaleHelper
|
||||
I18n.locale = locale_sym
|
||||
|
||||
translations =
|
||||
if Rails.env.development?
|
||||
load_translations(locale_sym, force: true)
|
||||
elsif locale_sym == :en
|
||||
if locale_sym == :en
|
||||
load_translations(locale_sym)
|
||||
elsif locale_sym == site_locale || site_locale == :en
|
||||
load_translations_merged(locale_sym, fallback_locale, :en)
|
||||
|
Loading…
Reference in New Issue
Block a user