class ISO3166::Translations
to pt
to prevent from showing nil values
E.g. if a country has translations for pt
, and the user looks up pt-br
fallback
Extend the hash class to allow locale lookup fall back behavior
def [](locale)
def [](locale) super || super(locale.to_s.sub(/-.*/, '')) end