Class: Radmin::I18n

Inherits:
Object
  • Object
show all
Defined in:
lib/radmin/i18n.rb

Class Method Summary collapse

Class Method Details

.t(key, options = {}) ⇒ Object Also known as: translate



4
5
6
7
8
9
10
# File 'lib/radmin/i18n.rb', line 4

def t(key, options = {})
  if defined?(::I18n)
    ::I18n.t(key, options.merge(:scope => :radmin))
  else
    options[:default]
  end
end