class ISO3166::Translations

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/countries/translations.rbs

class ISO3166::Translations < ISO3166::Hash
  def []: (String locale) -> String
end

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)

Experimental RBS support (using type sampling data from the type_fusion project).

def []: (String locale) -> String

This signature was generated using 7 samples from 1 application.

def [](locale)
  super(locale) || super(locale.to_s.sub(/-.*/, ''))
end