Class: Radmin::I18n
- Inherits:
-
Object
- Object
- Radmin::I18n
- Defined in:
- lib/radmin/i18n.rb
Class Method Summary collapse
- .t(key, options = {}) ⇒ Object (also: translate)
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, = {}) if defined?(::I18n) ::I18n.t(key, .merge(:scope => :radmin)) else [:default] end end |