module Traducto::Helpers
*************************************************************************************
Methods that will be inserted in the ActionView.
*************************************************************************************
Public Instance Methods
t(key, options={})
click to toggle source
# File lib/traducto/helpers.rb, line 5 def t(key, options={}) @traducto ||= Traducto::Base.new(self) return @traducto.translate(key, options) end
use_translations_of(action)
click to toggle source
# File lib/traducto/helpers.rb, line 11 def use_translations_of(action) @traducto ||= Traducto::Base.new(self) @traducto.add_action action end