Method: Lola.language_code

Defined in:
lib/lola.rb

.language_code(language_name, options = {}) ⇒ Object

Returns the language code corresponding to the supplied language name

Carmen::language_code('English') => 'EN'


51
52
53
# File 'lib/lola.rb', line 51

def self.language_code(language_name, options={})
  search_collection(languages(options), language_name, 0, 1)
end