DotNet.Localization.Enumeration.GameLocale - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Localization / GameLocale
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:26
A language the shared localized-name catalogues carry.
English is complete, because it is the canonical name the Almanac publishes already. Every other language is sparse and depends on its source, so a lookup answers null where the pinned source carries no translation. This leaves the application in charge of its own fallback policy.
A lookup takes any tag rather than only these, so a caller passes its application locale straight in. A regional or a script subtag is dropped rather than matched, because every stored language is a bare language tag: de-DE selects German. Case is ignored, and an underscore stands for a hyphen. Any other language is one the catalogues do not carry, and every lookup for it answers null.
A source can publish a translation whose spelling equals the English name. A lookup answers what the source states, and never builds an English fallback of its own.
En
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:29
English.
De
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:32
German.
Es
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:35
Spanish.
Fr
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:38
French.
Pt
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:44
Portuguese. The stored spelling is the Brazilian Portuguese every accepted source publishes under a bare tag, so pt-PT selects it like any other regional tag.
Ru
Defined in: dotnet/src/EliteDangerousAlmanac/Localization/GameLocale.cs:47
Russian.