15 lines
205 B
Ruby
15 lines
205 B
Ruby
module I18n
|
|
class Middleware
|
|
|
|
def initialize(app)
|
|
@app = app
|
|
end
|
|
|
|
def call(env)
|
|
@app.call(env)
|
|
ensure
|
|
Thread.current[:i18n_config] = I18n::Config.new
|
|
end
|
|
|
|
end
|
|
end
|