Hi @David Thielen
As we all known, in the Blazor Server application, the communication or navigation is based on SignalR circuit (WebSockets). So, if localization schemes are based on the URL path or query string, the scheme might not be able to work with WebSockets, thus fail to persist the culture. Therefore, the recommended approach is to use a localization culture cookie, it will ensure that the WebSocket connection can correctly propagate the culture. See the Dynamically set the server-side culture by user preference section of this article to see an example Razor expression that persists the user's culture selection.
So, it will use the follow code to achieve a redirect-based approach with a localization cookie. The app persists the user's selected culture via a redirect to a controller. The controller sets the user's selected culture into a cookie and redirects the user back to the original URI.
Navigation.NavigateTo(
$"Culture/Set?culture={cultureEscaped}&redirectUri={uriEscaped}",
forceLoad: true);
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion