Method: Air18n::ClassMethods#language
- Defined in:
- lib/air18n/class_methods.rb
#language ⇒ Object
Returns only the language part of the current locale, as a symbol. E.g. “pt” if the locale is pt-BR.
9 10 11 |
# File 'lib/air18n/class_methods.rb', line 9 def language language_from_locale full_locale end |