mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
ensure default locale is 'en' instead of nil
This commit is contained in:
parent
5094df2807
commit
5dcdfb9777
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue