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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
iso2 | string |
locale? | string |
Returns
Section titled “Returns”string