getISOLanguages (JavaScript)

Returns a list of all 2-letter language codes defined in ISO 639. Can be used to create Locales.

Note: ISO 639 is not a stable standard-- some language codes have changed. The list this function returns includes both the new and the old codes for the languages whose codes have changed.

Defined in

Locale (Runtime - JavaScript)

Syntax

getISOLanguages() : string[]