Sha256: a15e7463ac0f96feb0e759b808a78bb01f35af7c29122b97abee5ea66047de53
Contents?: true
Size: 358 Bytes
Versions: 43
Compression:
Stored size: 358 Bytes
Contents
module Releaf::I18nDatabase module HumanizeMissingTranslations def call(exception, locale, key, options) if key.present? && exception.is_a?(I18n::MissingTranslation) key.to_s.split('.').last.humanize else super end end def self.initialize_component I18n.exception_handler.extend(self) end end end
Version data entries
43 entries across 43 versions & 1 rubygems