Interface ITlumachCultureStore
Stores the culture that the user has chosen so that the next visit or the next circuit starts with it.
Register an own implementation before calling AddTlumachBlazor(IServiceCollection, Action<TlumachBlazorOptions>?) to replace the built-in stores.
public interface ITlumachCultureStore
Methods
LoadAsync(CancellationToken)
Loads the name of the stored culture.
ValueTask<string?> LoadAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
SaveAsync(CultureInfo, CancellationToken)
Stores the culture.
ValueTask SaveAsync(CultureInfo culture, CancellationToken cancellationToken = default)
Parameters
cultureCultureInfoThe culture to store.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- ValueTask
A task that completes when the culture is stored.