Tankōbon / lib/language-flag / languageCountry
Function: languageCountry()
languageCountry(
code):string|null
Defined in: lib/language-flag.ts:20
The ISO 3166-1 alpha-2 code of the country whose flag stands for an ISO 639-1 language code ("fr" → "FR", "en" → "GB"), or null when the code is empty or unknown. A region suffix is ignored ("fr-CA" → "FR").
Parameters
code
string | null
Returns
string | null