Module: Uchi::I18n

Defined in:
lib/uchi/i18n.rb

Class Method Summary collapse

Class Method Details

.translate(key, **options) ⇒ Object



7
8
9
10
11
# File 'lib/uchi/i18n.rb', line 7

def translate(key, **options)
  scope = options.delete(:scope)
  scope ||= "uchi" unless key.to_s.start_with?("uchi.")
  ::I18n.translate(key, **options, scope: scope)
end