DotNet.Localization.Class.GameLocales - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Localization / GameLocales

Class: GameLocales

Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:51

Reads a GameLocale from the tag an application holds.

Methods

TryParse()

static TryParse(tag, locale): bool

Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:73

Reads the language one BCP 47 tag selects.

Parameters

tag

string?

The tag, such as de or de-DE. Case is ignored, an underscore stands for a hyphen, and a regional or script subtag is dropped.

locale

out GameLocale

The language the tag selects, when the answer is true.

Returns

bool

true where the catalogues carry the language the tag names.

⚠️ **GitHub.com Fallback** ⚠️