Understand the country data structure
masterThe country data is stored in resources/data/countries.json and contains a rich set of attributes for each country. Key data groups include:
- Names:
namecontainscommon,official, andnativenames (wherenativeis keyed by ISO 639-3 language codes). - Codes: ISO 3166-1
alpha2,alpha3, andnumericcodes. - Currency:
currencyprovides ISO 4217 details (code, numeric, name, and minor unit) keyed by the three-letter currency code. - Geography (
geo): Includescontinent(keyed by two-letter code),postal_codeusage, coordinates (latitude,longitude),area,region,subregion,landlockedstatus, andborders. - Dialling:
diallingincludescalling_code,national_prefix, and various length specifications for national and international numbers. - Languages:
languagesis a list of official languages keyed by ISO 639-3 code. - Translations:
translationsprovides name translations keyed by ISO 639-3 code. - Extra Metadata: The
extraobject contains various international identifiers such asgeonameid,fifa,fips,ioc,eu_member, andemoji(flag emoji).