Module: AwesomeTranslations::ObjectExtensions

Defined in:
lib/awesome_translations/object_extensions.rb

Instance Method Summary collapse

Instance Method Details

#t(key, *args, **opts, &blk) ⇒ Object



2
3
4
# File 'lib/awesome_translations/object_extensions.rb', line 2

def t(key, *args, **opts, &blk)
  AwesomeTranslations::GlobalTranslator.translate(key, caller_number: 1, translation_args: args, translation_opts: opts, &blk)
end