def call(env)
      @env = env
      @request = Rack::Request.new(@env)
      set_locale

      @app.call(env) && return if @request.post? || @request.put? || @request.delete?

      status, headers, body = @app.call(@env)
      response = Rack::Response.new(body, status, headers)
      response.set_cookie("user-locale", value: I18n.locale, path: "/") if cookie_locale != I18n.locale.to_s
      response.finish
    end
def call(env)
      @env = env
      @request = Rack::Request.new(@env)
      set_locale

      @app.call(env) && return if @request.post? || @request.put? || @request.delete?

      status, headers, body = @app.call(@env)
      response = Rack::Response.new(body, status, headers)
      response.set_cookie("user-locale", value: I18n.locale, path: "/") if cookie_locale != I18n.locale.to_s
      response.finish
    end
TODO: Write notes

 TODO: Write notes