Rxova
Skip to content

countryName

function countryName(iso2, locale?): string;

The localised country name, from the platform.

Intl.DisplayNames ships with every engine, so this is free and correct in every locale the runtime supports. Falls back to the ISO code, which is at least unambiguous, if the API or the region is unknown.

ParameterType
iso2string
locale?string

string