Module: Gitter::I18n
Instance Method Summary collapse
Instance Method Details
#translate(prefix, key) ⇒ Object
6 7 8 |
# File 'lib/gitter/i18n.rb', line 6 def translate prefix, key ::I18n.translate "gitter.#{name}.#{prefix}.#{key}", default: key.to_s.humanize end |