Skip to content

localizationsharedmodels TranslationSet

Denis Akopyan edited this page Jul 10, 2025 · 1 revision

TranslationSet Public class

Description

Set of translations for a specific TranslationSet.Namespace and TranslationSet.Key

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph Localization.Shared.Models
  Localization.Shared.Models.TranslationSet[[TranslationSet]]
  end
Loading

Members

Properties

Public properties

Type Name Methods
string Key
Key identifying the translation
get
string Namespace
Namespace for separating translations into logical groups
get
LString Source
Localized string utilizing this translation set
get, init
IReadOnlyDictionary<string, string> Translations
Culture-keyed translations
get, init

Details

Summary

Set of translations for a specific TranslationSet.Namespace and TranslationSet.Key

Remarks

Translation sets are provided by classes marked with TranslationProviderAttribute and are consumed by the ITranslator implementation

Constructors

TranslationSet

public TranslationSet()

Properties

Namespace

public string Namespace { get; }
Summary

Namespace for separating translations into logical groups

Example

Dialogs would be a namespace for dialog-related translations

Key

public string Key { get; }
Summary

Key identifying the translation

Example

DialogTitle would be a key for a dialog title translation

Translations

public IReadOnlyDictionary<string, string> Translations { get; init; }
Summary

Culture-keyed translations

Remarks

The keys in this dictionary are lowercase RFC 4646 language tags (e.g., "en-US", "fr-FR") mapped to their respective localized strings

Source

public LString Source { get; init; }
Summary

Localized string utilizing this translation set

Generated with ModularDoc

Clone this wiki locally