Interface ILocalizationPersistence
- Namespace
- BlazOrbit.Localization.Wasm
- Assembly
- BlazOrbit.Localization.Wasm.dll
Persists the user's chosen culture between WebAssembly app loads.
public interface ILocalizationPersistence
Methods
GetStoredCultureAsync()
Returns the previously stored culture name, or null when none has been persisted.
Task<string?> GetStoredCultureAsync()
Returns
- Task<string>
SetStoredCultureAsync(string)
Persists the supplied culture name (e.g. es-ES).
Task SetStoredCultureAsync(string culture)
Parameters
culturestring
Returns
- Task