class Sidekiq::Middleware::I18n::Client
Get the current locale and store it in the message to be sent to Sidekiq
.
Public Instance Methods
Source
# File lib/sidekiq/middleware/i18n.rb, line 14 def call(_jobclass, job, _queue, _redis) job["locale"] ||= I18n.locale yield end