Module: I18n::HumanizeMissingTranslations
- Defined in:
- lib/i18n/humanize_missing_translations.rb
Overview
Show only last part from key in humanize mode
Instance Method Summary collapse
Instance Method Details
#call(exception, locale, key, options) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/i18n/humanize_missing_translations.rb', line 4 def call(exception, locale, key, ) if exception.is_a?(I18n::MissingTranslation) key.to_s.split('.').last.humanize else super end end |