Setting Culture from User's Browser

Hi,

I'm running Radzen on a Windows PC with German locale settings and with a browser configured to this language a well. When I run my Radzen app in development/deug mode, any number or date formatting is outputted in German style, e.g a date ist shown as dd.mm.YYYY. I have not set any language/locale-specific settings in Radzen; everything is set to default and the date/time object is simply printed using .ToString().

Now, if I deploy the same app to an IIS server (different machine), the app itself runs fine, but all culture-specific formatting is now in English/invarinat culture, e.g. the date looks like this:m/d/Y

It thought that Radzen would use the culture derived from the browser's user agent. If that is not the case, how can this be configured?

Thanks a lot for you help!

Hi,

The application culture depends on the server that serves the application not on the user browser. At the moment there is no such feature implemented in Radzen that will detect and serve the application according to the browser culture.

1 Like

In addition you can check the Internationalization help topic which shows how to add supported cultures and set the default application culture. For example you can set the default culture to 'de-DE'

1 Like