mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-31 09:09:53 -04:00
apply locale in sidekiq jobs
This commit is contained in:
parent
fb573b917f
commit
3a8cfffb2d
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ module Jobs
|
|||
begin
|
||||
Jobs::Base.mutex.synchronize do
|
||||
RailsMultisite::ConnectionManagement.establish_connection(:db => db)
|
||||
I18n.locale = SiteSetting.default_locale
|
||||
execute(opts)
|
||||
end
|
||||
ensure
|
||||
|
|
Loading…
Add table
Reference in a new issue