How do I get the current culture in a Blazor WebAssembly application?

Platform: Blazor| Category : WebAssembly, General

You can get the current culture in a Blazor WebAssembly app by using the CultureInfo.CurrentCulture property. 

[Index.razor]

@page "/"
@using System.Globalization

<h2>The Current culture is "@CultureInfo.CurrentCulture"</h2>

Please refer to this link for more details. 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.