infoweb\cms\helpers\LanguageHelper::getCountry PHP Method

getCountry() public static method

"en-US" => 'us'
public static getCountry ( $language = null ) : string
return string
    public static function getCountry($language = null)
    {
        $parts = self::getLanguageCodeParts($language);
        return isset($parts[1]) ? $parts[1] : '';
    }