mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 18:34:42 +08:00
using wrong var here
This commit is contained in:
@ -45,7 +45,7 @@ module I18n
|
|||||||
LOAD_MUTEX = Mutex.new
|
LOAD_MUTEX = Mutex.new
|
||||||
def load_locale(locale)
|
def load_locale(locale)
|
||||||
LOAD_MUTEX.synchronize do
|
LOAD_MUTEX.synchronize do
|
||||||
return if @loaded_locales.include?(config.locale)
|
return if @loaded_locales.include?(locale)
|
||||||
|
|
||||||
if @loaded_locales.empty?
|
if @loaded_locales.empty?
|
||||||
# load all rb files
|
# load all rb files
|
||||||
|
Reference in New Issue
Block a user