Table of Contents

Class CountryNames

Namespace
VpnHood.AppUi.Common
Assembly
VpnHood.AppUi.Common.dll

Provides the countries' names in the language last asked for, else in English, from the UI's content store; the names fall back apart from the words.

public static class CountryNames
Inheritance
CountryNames
Inherited Members

Methods

Get(string, string?)

Gets a country's name in the language last set, else in English, else the fallback, else the code.

public static string Get(string countryCode, string? fallback = null)

Parameters

countryCode string

The country's two-letter code.

fallback string

The name to use where the store has none, as a location's own, or null.

Returns

string

The name.