Interface ITextResolver
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Resolves a user-facing string outside a component, such as in a mail or a server-rendered page, by its key with its English default.
public interface ITextResolver
Remarks
Tharga.Team.Blazor registers one that asks the host's IThargaTextProvider, so a host that translates the
components translates these strings too. Without one registered, the English defaults are used.
Methods
GetAsync(string, string)
The string for key in the current culture, or englishDefault when there is no translation.
Task<string> GetAsync(string key, string englishDefault)