How is the culture set per circuit/session in Blazor server

David Thielen 2,331 Reputation points


Sorry for a new question but my comment in this question does not appear (disappearing comments seems to be endemic on this site).

Very basic question. How does the culture get set for a session/circuit in Blazor server. In the case of no prompt to the user allowing a change, what goes on?

  1. Does it set the culture based on the client browsers Accept-Language?
  2. Does it set the culture based on the server's culture, having all clients use that same culture?
  3. Is it something else?

And if it's per session/circuit, do I need to do anything or does it then have that as the CultureInfo.CurrentCulture / CultureInfo.CurrentUICulture for all calls I make in the context of that session/circuit?

thanks - dave

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,427 questions
{count} votes