Skip to content

Commit

Permalink
Add: Add a prefix for storage language
Browse files Browse the repository at this point in the history
  • Loading branch information
whats2000 committed Aug 21, 2024
1 parent 81b6992 commit 69d0cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pages/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private async void OnClickChangeLanguage(string language)
await TransText.LoadLanguageAsync(language);

// Store the selected language in localStorage
await JSRuntime.InvokeVoidAsync("localStorage.setItem", "userLanguage", language);
await JSRuntime.InvokeVoidAsync("localStorage.setItem", "PearlCalculatorBlazor_userLanguage", language);
}

protected override async void OnInitialized()
Expand Down

0 comments on commit 69d0cd2

Please sign in to comment.