module I18n::HumanizeMissingTranslations

Show only last part from key in humanize mode

Public Instance Methods

call(exception, locale, key, options) click to toggle source
Calls superclass method
# File lib/i18n/humanize_missing_translations.rb, line 4
def call(exception, locale, key, options)
  if exception.is_a?(I18n::MissingTranslation)
    key.to_s.split('.').last.humanize
  else
    super
  end
end