Sha256: 7043688a53181b883bc79d382b853e236f3a28aa425c3f3016c58693f00b62a5

Contents?: true

Size: 215 Bytes

Versions: 62

Compression:

Stored size: 215 Bytes

Contents

module Workarea
  class I18nServerMiddleware
    def call(worker, msg, queue)
      if msg['locale'].present?
        ::I18n.with_locale(msg['locale']) { yield }
      else
        yield
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 app/middleware/workarea/i18n_server_middleware.rb
workarea-core-3.4.12 app/middleware/workarea/i18n_server_middleware.rb