From 3c6aede1aa98a8456b00ab2d1e01b3f35466323c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Feb 2015 14:40:07 +1100 Subject: [PATCH] using wrong var here --- lib/freedom_patches/translate_accelerator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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