Module: I18n

Defined in:
lib/i18n/language_names.rb,
lib/i18n/language_names/version.rb

Overview

TODO: be picky about what we import (no monkey-patching) require ‘twitter_cldr/resources’ require “twitter_cldr/shared/languages”

Defined Under Namespace

Modules: LanguageNames

Class Method Summary collapse

Class Method Details

.language_name(language = self.locale) ⇒ Object



16
17
18
# File 'lib/i18n/language_names.rb', line 16

def self.language_name(language = self.locale)
  LanguageNames.get_language_name(language, self.locale)
end

.native_language_name(language) ⇒ Object



20
21
22
# File 'lib/i18n/language_names.rb', line 20

def self.native_language_name(language)
  LanguageNames.get_language_name(language, language)
end