Skip to content
ConsoleMonster
Class

LabelCatalog

ConsoleMonster.Localization

Namespace
ConsoleMonster.Localization
Assembly
ConsoleMonster
Modifiers
static

The built-in translations of WidgetLabels and PromptLabels: one embedded Labels.<language>.txt per language with Widget.Name = text and Prompt.Name = text lines.

Inheritance

  • object
  • LabelCatalog

Methods

public static IReadOnlyDictionary<string, string> Entries(string language) #

The translations for a language (two-letter code), or an empty table when it has none.

Parameters

language string required
The two-letter language code, for example pl.

Returns

IReadOnlyDictionary<string, string> Keys such as Widget.Showing to text.

Properties

public static IReadOnlyList<string> Languages { get; } #

The languages with built-in translations besides English (two-letter codes).