mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:07:27 +00:00
FIX: Load fallback locales in Sidekiq jobs
This commit is contained in:
parent
f37f6f7673
commit
619d5b1bc1
@ -149,6 +149,7 @@ module Jobs
|
||||
begin
|
||||
RailsMultisite::ConnectionManagement.establish_connection(db: db)
|
||||
I18n.locale = SiteSetting.default_locale
|
||||
I18n.fallbacks.ensure_loaded!
|
||||
begin
|
||||
execute(opts)
|
||||
rescue => e
|
||||
|
Loading…
x
Reference in New Issue
Block a user