Class LocalisationContext
- Namespace
- EDMOFrontend.Components
- Assembly
- EDMOFrontend.dll
public class LocalisationContext
- Inheritance
-
LocalisationContext
- Inherited Members
-
Constructors
LocalisationContext(LocalisationProvider, ProtectedSessionStorage)
public LocalisationContext(LocalisationProvider localisationProvider, ProtectedSessionStorage sessionStorage)
Parameters
localisationProvider
LocalisationProvider
sessionStorage
ProtectedSessionStorage
Properties
AvailableLocales
public IReadOnlyDictionary<string, string> AvailableLocales { get; }
Property Value
- IReadOnlyDictionary<string, string>
LocaleChanged
public Action? LocaleChanged { get; set; }
Property Value
- Action
Methods
GetLocaleNameAsync()
public ValueTask<string> GetLocaleNameAsync()
Returns
- ValueTask<string>
GetLocalisedString(string, string, params object?[])
public ValueTask<string?> GetLocalisedString(string bankKey, string textKey, params object?[] args)
Parameters
bankKey
string
textKey
string
args
object[]
Returns
- ValueTask<string>
SetLocaleAsync(string)
public Task SetLocaleAsync(string localeName)
Parameters
localeName
string
Returns
- Task