class Sidekiq::Middleware::I18n::Client

Get the current locale and store it in the message to be sent to Sidekiq.

Public Instance Methods

call(_worker, msg, _queue, _redis) { || ... } click to toggle source
# File lib/sidekiq/middleware/i18n.rb, line 13
def call(_worker, msg, _queue, _redis)
  msg["locale"] ||= I18n.locale
  yield
end