mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
ensure default locale is 'en' instead of nil
This commit is contained in:
parent
5094df2807
commit
5dcdfb9777
@ -148,7 +148,7 @@ module Jobs
|
||||
t = Thread.new do
|
||||
begin
|
||||
RailsMultisite::ConnectionManagement.establish_connection(db: db)
|
||||
I18n.locale = SiteSetting.default_locale
|
||||
I18n.locale = SiteSetting.default_locale || "en"
|
||||
I18n.ensure_all_loaded!
|
||||
begin
|
||||
execute(opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user