Interop local storage APIs should be generic

This commit is contained in:
hishamco
2020-12-03 13:37:18 +03:00
parent fa3cc48fd0
commit 1b3cc2c44e
4 changed files with 12 additions and 12 deletions

View File

@ -26,7 +26,7 @@
protected override async Task OnParametersSetAsync()
{
var interop = new Interop(JSRuntime);
_selectedCulture = await interop.getCulture();
_selectedCulture = await interop.GetLocalStorage("OqtaneCulture");
_supportedCultures = await LocalizationService.GetSupportedCultures();
}
@ -35,7 +35,7 @@
if (culture != CultureInfo.CurrentUICulture.Name)
{
var interop = new Interop(JSRuntime);
await interop.setCulture(culture);
await interop.SetLocalStorage("OqtaneCulture", culture);
NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true);
}