Interface IStringSource
- Namespace
- VpnHood.AppUi.Common
- Assembly
- VpnHood.AppUi.Common.dll
Defines words from outside this assembly, laid over the ones it carries: a language it does not ship, or lines said another way.
public interface IStringSource
Remarks
It has the shape of a locale file. It is added with AddSourceAsync(IStringSource, CancellationToken), before or after the UI is up.
Properties
Cultures
Gets the languages this source has, as culture names (fa, pt-BR).
IReadOnlyList<string> Cultures { get; }
Property Value
Methods
Load(string)
Gets the words of a language.
IReadOnlyDictionary<string, string>? Load(string cultureName)
Parameters
cultureNamestringThe language's culture name.
Returns
- IReadOnlyDictionary<string, string>
The words, by key, or null where the source has none for it.