mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Dont save i18n locale if already set, fixes #1011
This commit is contained in:
parent
f0dafa632a
commit
e753ff9615
3 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
HEAD
|
||||
-----------
|
||||
|
||||
- log rotation via USR2 didn't close the old logger [#1008]
|
||||
- fix i18n support resetting saved locale when job is retried [#1011]
|
||||
- log rotation via USR2 now closes the old logger [#1008]
|
||||
|
||||
2.12.4
|
||||
-----------
|
||||
|
|
|
@ -3,7 +3,7 @@ module Sidekiq::Middleware::I18n
|
|||
# to be sent to Sidekiq.
|
||||
class Client
|
||||
def call(worker_class, msg, queue)
|
||||
msg['locale'] = I18n.locale
|
||||
msg['locale'] ||= I18n.locale
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Sidekiq
|
||||
VERSION = "2.12.4"
|
||||
VERSION = "2.12.5"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue