DEV: Use locale fallback even in development mode

Making dev behave differently than prod is a bad idea.
This commit is contained in:
Gerhard Schlager 2018-12-18 00:18:00 +01:00
parent 825ae86857
commit 86546bb5c6
1 changed files with 1 additions and 3 deletions

View File

@ -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)