public static function getAlpha3Codes(): array
{ return self::
readEntry(['Alpha3Languages'
], 'meta'
);
} /**
* @param string $language ISO 639-2 three-letter language code
*/
public static function alpha3CodeExists(string
$language): bool
{ try { self::
getAlpha2Code($language);
return true;
} catch (MissingResourceException
) { static $cache;
$cache ??=
array_flip(self::
getAlpha3Codes());
return isset($cache[$language]);
} } /**
* Gets the language name from its ISO 639-2 three-letter code.
*
* @throws MissingResourceException if the country code does not exists
*/