nationid - v2.2.1
    Preparing search index...

    Interface CountryInfo

    Resolved country catalog entry.

    name is sourced from Intl.DisplayNames (CLDR data shipped with the runtime) so any BCP 47 locale the runtime supports works — not just es/en/pt. flag is computed from the ISO 3166-1 alpha-2 code via Regional Indicator Symbols, so it stays correct for any future country we add.

    Future v1.x minors may extend this shape with optional fields (phonePrefix, currency, continent, etc.). Existing fields keep their semantics.

    interface CountryInfo {
        alpha3: string;
        code: CountryCode;
        flag: string;
        name: string;
    }
    Index
    alpha3: string

    ISO 3166-1 alpha-3 code, e.g. "MEX", "BRA".

    ISO 3166-1 alpha-2 code, e.g. "MX", "BR".

    flag: string

    Flag emoji, two Regional Indicator Symbols.

    name: string

    Localized country name (e.g. "México" for "MX" in "es").