Table of Contents

Interface IStringProvider

Namespace
VpnHood.AppLib.Abstractions
Assembly
VpnHood.AppLib.Abstractions.dll

Represents the translated words for the text the app draws for itself, which a head that has them gives the app.

public interface IStringProvider

Remarks

The app library names no source of its own, so without one it speaks the English of its resources. It is asked per word, so a language chosen while the app runs is answered.

Methods

GetString(CultureInfo, string)

Gets a word in a language.

string? GetString(CultureInfo culture, string key)

Parameters

culture CultureInfo

The language.

key string

The word's key, as the locale files have it, as CONNECT.

Returns

string

The word, or null where the provider has neither the key nor the language, and the caller keeps its own.