Module: I18n::Base

Defined in:
lib/brick.rb

Instance Method Summary collapse

Instance Method Details

#_brick_translateObject



1807
# File 'lib/brick.rb', line 1807

alias _brick_translate translate

#translate(key = nil, *args, throw: false, raise: false, locale: nil, **options) ⇒ Object



1808
1809
1810
1811
# File 'lib/brick.rb', line 1808

def translate(key = nil, *args, throw: false, raise: false, locale: nil, **options)
  options.merge!(args.pop) if args.last.is_a?(Hash)
  _brick_translate(key = nil, throw: false, raise: false, locale: nil, **options)
end