Merge pull request #3786 from gschlager/i18n-sidekiq
FIX: Load fallback locales in Sidekiq jobs
This commit is contained in:
commit
c9e8dd87e5
|
@ -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 New Issue