main
1# frozen_string_literal: true
2
3module Saml
4 module Kit
5 # This module is responsible
6 # for translating error messages
7 # to the current locale.
8 module Translatable
9 # @!visibility private
10 def error_message(attribute, options = {})
11 default_options = { scope: "saml/kit.errors.#{name}" }
12 I18n.translate(attribute, **default_options.merge(options))
13 end
14 end
15 end
16end