module Riak::Util::Translation

Methods for doing i18n string lookup

Public Instance Methods

i18n_scope() click to toggle source

The scope of i18n messages

# File lib/riak/util/translation.rb, line 8
def i18n_scope
  :riak
end
t(message, options = {}) click to toggle source

Provides the translation for a given internationalized message

# File lib/riak/util/translation.rb, line 13
def t(message, options = {})
  I18n.t("#{i18n_scope}.#{message}", options)
end