Skip to content

Commit

Permalink
Merge pull request #9 from SubathraKaliamoorthy/master
Browse files Browse the repository at this point in the history
Localization sample updated suitable for Blazor Web App.
  • Loading branch information
rajendranr-5483 authored Apr 15, 2024
2 parents 5df7c3d + 4d5595c commit 3cb6e78
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
{
if (CultureInfo.CurrentCulture != value)
{
var js = (IJSInProcessRuntime)JSRuntime;
js.InvokeVoid("cultureInfo.set", value.Name);
JSRuntime.InvokeVoidAsync("cultureInfo.set", value.Name);

NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true);
}
}
}
}
}

0 comments on commit 3cb6e78

Please sign in to comment.