Interface ISignalTexts
- Namespace
- Signal.Application.Localization
- Assembly
- Signal.Application.dll
The texts the framework sends, per culture. The default reads translations from Signal:Localization:Texts
and falls back from a specific culture name to its parents (de-AT → de) and then to English.
Replace it to load texts from elsewhere (resources, a database).
public interface ISignalTexts
Remarks
Cultures are plain names (de-AT), not CultureInfos, so translations also work in
invariant-globalization mode (common in small container images), where most cultures can't be created.
Methods
Get(string, string, params object?[])
Gets a text, formatted with args.
string Get(string key, string culture, params object?[] args)
Parameters
keystringA TextKey constant, or
Type.{display name}.culturestringThe culture name of the conversation, e.g.
de-AT.argsobject[]Format arguments (formatted with the invariant culture).
Returns
- string
The text; the English default (or the key itself) if there is no translation.