libphonenumber\geocoding\PhoneNumberOfflineGeocoder::getRegionDisplayName PHP Method

getRegionDisplayName() protected method

Returns the customary display name in the given language for the given region.
protected getRegionDisplayName ( $regionCode, $locale ) : string
$regionCode
$locale
return string
    protected function getRegionDisplayName($regionCode, $locale)
    {
        if ($regionCode === null || $regionCode == 'ZZ' || $regionCode === PhoneNumberUtil::REGION_CODE_FOR_NON_GEO_ENTITY) {
            return "";
        }
        return Locale::getDisplayRegion('-' . $regionCode, $locale);
    }