Class: Symbol

Inherits:
Object show all
Defined in:
lib/olelo/locale.rb

Instance Method Summary collapse

Instance Method Details

#t(args = {}) ⇒ String

Lookup translated string identified by this symbol

Parameters:

  • args (Hash) (defaults to: {})

    Arguments hash for string interpolation

Returns:

  • (String)

    translated string

See Also:



53
54
55
# File 'lib/olelo/locale.rb', line 53

def t(args = {})
  Olelo::Locale.translate(self, args)
end