public static function countryLanguageCodes($countryCode)
    {
        $localeCodes = Locale::countryLocaleCodes($countryCode);

        $list = [];
        foreach ($localeCodes as $localeCode) {
            $list[] = Locale::languageCode($localeCode);
        }

        return $list;
    }
public static function countryLanguageCodes($countryCode)
    {
        $localeCodes = Locale::countryLocaleCodes($countryCode);

        $list = [];
        foreach ($localeCodes as $localeCode) {
            $list[] = Locale::languageCode($localeCode);
        }

        return $list;
    }
public static function countryLanguageCodes ( $ countryCode ) { $ localeCodes = Locale :: countryLocaleCodes ( $ countryCode ) ; $ list = [ ] ; foreach ( $ localeCodes as $ localeCode ) { $ list [ ] = Locale :: languageCode ( $ localeCode ) ; } return $ list ; }
Returns list of country ISO 639-1 language codes
@param string $countryCode the ISO 3166-1 alpha-2 country code
@return string[]
Returns list of country ISO 639 - 1 language codes