How do I get the Blazor Client browser selected language? (So I can use the right decimal separator for calculations on that client browser)
问题 I try to show and use the right digit separator depending on the clients browser selected language. I'm using a Blazor Server App. I've tried to use the 'Sytem.Globalization' namespace but this only shows the settings of the Server Side browser. Is there a way to get the Client browser language/culure settings? 回答1: You could use javascripts navigator.language property via Interop. https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages public static class JsInterop {