class Grape::Exceptions::Base

def translate_message(key, options = {})

def translate_message(key, options = {})
  case key
  when Symbol
    translate("#{BASE_MESSAGES_KEY}.#{key}", options.merge(default: ''))
  when Proc
    key.call
  else
    key
  end
end