Module: R18n
- Defined in:
- lib/conjoin/i18n.rb
Defined Under Namespace
Classes: Locale
Class Method Summary collapse
Class Method Details
.t(*params) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/conjoin/i18n.rb', line 50 def t(*params) if params.first.is_a? String params.first.split('.').inject(get.t) { |h, k| h[k.to_sym] } else get.t(*params) end end |