class ISO3166::Country

def translation(locale = 'en')

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

def translation: (?(String | Symbol) locale) -> String?

This signature was generated using 5 samples from 2 applications.

Returns:
  • (String) - the name of this Country in the selected locale.

Parameters:
  • locale (String) -- The locale to use for translations.
def translation(locale = 'en')
  data['translations'][locale.to_s.downcase]
end