diff --git a/lib/freedom_patches/translate_accelerator.rb b/lib/freedom_patches/translate_accelerator.rb index 3a53e5875c3..af237e9b6f3 100644 --- a/lib/freedom_patches/translate_accelerator.rb +++ b/lib/freedom_patches/translate_accelerator.rb @@ -45,7 +45,7 @@ module I18n LOAD_MUTEX = Mutex.new def load_locale(locale) LOAD_MUTEX.synchronize do - return if @loaded_locales.include?(config.locale) + return if @loaded_locales.include?(locale) if @loaded_locales.empty? # load all rb files