GetCountryList (open)

Get a list of country names in one or more locales or languages

Syntax

LOADLIB "wh::util/localization.whlib";

RECORD ARRAY FUNCTION GetCountryList(VARIANT locale)

Parameters

VARIANT locale

The language(s) or locale(s) to use (e.g. 'en', [ 'en-GB', 'nl' ] or 'zh-Hans-CN')

Return value

RECORD ARRAY

The list of country names (each record contains the country code and a cell for each localization)

STRING code

The two-letter ISO 3166 country code (uppercase)