Class: TwitterCldr::Shared::LikelySubtags

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/shared/likely_subtags.rb

Class Method Summary collapse

Class Method Details

.locale_for(locale_text) ⇒ Object



13
14
15
16
# File 'lib/twitter_cldr/shared/likely_subtags.rb', line 13

def locale_for(locale_text)
  locale = Locale.parse(locale_text)
  lookup(locale)
end