-
-
Notifications
You must be signed in to change notification settings - Fork 0
localizationsharedmodels TranslationSet
Denis Akopyan edited this page Jul 10, 2025
·
1 revision
Set of translations for a specific TranslationSet.Namespace and TranslationSet.Key
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph Localization.Shared.Models
Localization.Shared.Models.TranslationSet[[TranslationSet]]
end
| Type | Name | Methods |
|---|---|---|
string |
KeyKey identifying the translation |
get |
string |
NamespaceNamespace for separating translations into logical groups |
get |
LString |
SourceLocalized string utilizing this translation set |
get, init |
IReadOnlyDictionary<string, string> |
TranslationsCulture-keyed translations |
get, init |
Set of translations for a specific TranslationSet.Namespace and TranslationSet.Key
Translation sets are provided by classes marked with TranslationProviderAttribute and are consumed by the ITranslator implementation
public TranslationSet()public string Namespace { get; }Namespace for separating translations into logical groups
Dialogs would be a namespace for dialog-related translations
public string Key { get; }Key identifying the translation
DialogTitle would be a key for a dialog title translation
public IReadOnlyDictionary<string, string> Translations { get; init; }Culture-keyed translations
The keys in this dictionary are lowercase RFC 4646 language tags (e.g., "en-US", "fr-FR") mapped to their respective localized strings
public LString Source { get; init; }Localized string utilizing this translation set
Generated with ModularDoc