module Webmachine::Translation

Provides an interface to the I18n library specifically for {Webmachine}‘s messages.

Public Instance Methods

t(key, options = {}) click to toggle source

Interpolates an internationalized string. @param [String] key the name of the string to interpolate @param [Hash] options options to pass to I18n, including

variables to interpolate.

@return [String] the interpolated string

# File lib/webmachine/translation.rb, line 15
def t(key, options = {})
  ::I18n.t(key, **options.merge(scope: :webmachine))
end