mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Reset locale to default, fixes #1415
This commit is contained in:
parent
a67f8427ac
commit
4116e2516d
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Sidekiq::Middleware::I18n
|
|||
I18n.locale = msg['locale'] || I18n.default_locale
|
||||
yield
|
||||
ensure
|
||||
I18n.locale = nil
|
||||
I18n.locale = I18n.default_locale
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue