DEV: Use locale fallback even in development mode

DEV: Use locale fallback even in development mode

Making dev behave differently than prod is a bad idea.

diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb
index 0207aee..ae7c6f4 100644
--- a/lib/js_locale_helper.rb
+++ b/lib/js_locale_helper.rb
@@ -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)

GitHub
sha: 86546bb5

2 Likes