mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Load fallback locales in Sidekiq jobs
This commit is contained in:
parent
f37f6f7673
commit
619d5b1bc1
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ module Jobs
|
||||||
begin
|
begin
|
||||||
RailsMultisite::ConnectionManagement.establish_connection(db: db)
|
RailsMultisite::ConnectionManagement.establish_connection(db: db)
|
||||||
I18n.locale = SiteSetting.default_locale
|
I18n.locale = SiteSetting.default_locale
|
||||||
|
I18n.fallbacks.ensure_loaded!
|
||||||
begin
|
begin
|
||||||
execute(opts)
|
execute(opts)
|
||||||
rescue => e
|
rescue => e
|
||||||
|
|
Loading…
Reference in a new issue