Interface ITranslationService
- Namespace
- Uncreated.Warfare.Translations
- Assembly
- Uncreated.Warfare.dll
public interface ITranslationService
Properties
LanguageService
Service used to handle per-player language and culture settings.
LanguageService LanguageService { get; }
Property Value
SetOf
Accessor for enumerating certain player groups based on their language settings.
LanguageSets SetOf { get; }
Property Value
TerminalColoring
The coloring style used for terminals.
StackColorFormatType TerminalColoring { get; }
Property Value
- StackColorFormatType
Remarks
Only StackCleaner.StackColorFormatType.ANSIColor and StackCleaner.StackColorFormatType.ExtendedANSIColor is supported.
TranslationCollections
Dictionary of all translation collections with their types as a key.
IReadOnlyDictionary<Type, TranslationCollection> TranslationCollections { get; }
Property Value
ValueFormatter
Service used to format translation arguments.
ITranslationValueFormatter ValueFormatter { get; }
Property Value
Methods
Get<T>()
Get a translation collection from this provider.
T Get<T>() where T : TranslationCollection, new()
Returns
- T
Type Parameters
T
ReloadAll()
Reload all translation collections.
void ReloadAll()