Blazor WASM Localization and PreRerendering
We have a website that hosted by ASP.net Core Blazor WASM.
In order to avoid the "loading..." page at the begining, we are using PreRedenering which need to run a Blazor server application.
We are also using Asp.net core Globalization/localization to display in multiple languages.
We found a problem when ever we refresh the page or switch between the languages:
The pre-rendering page will always load the UI with default culture(language) for the frist time, and then WASM will rerendering the correct language for page.
That make the page display the the default language first, then it switch to selected language.
Is there a way we can handle the pre-rendering from server to modify the culture value when first time laoding the page.