A platform for community discussion. Free, open, simple.
FIX: Reload plugin translations in development (#8243)
Dan Ungureanu8ca5aad1e2b1
diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rbindex 52a6c93d30c..798a67fe87b 100644--- a/lib/js_locale_helper.rb+++ b/lib/js_locale_helper.rb@@ -6,10 +6,12 @@ module JsLocaleHelperDir["#{Rails.root}/plugins/*/config/locales/client.#{locale_str}.yml"]end- def self.reloadable_plugins(locale, ctx)+ def self.reloadable_plugins(locale_sym, ctx)return unless Rails.env.development?- plugin_client_files(locale.to_s).each do |file|- ctx.depend_on(file)+ I18n.fallbacks[locale_sym].each do |locale|+ plugin_client_files(locale.to_s).each do |file|+ ctx.depend_on(file)+ endendend