Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

CultureInfo.CurrentCulture.Name not being set correctly in IE 11/Edge Windows 10

$
0
0

Hello All,

We have implemented Localization in MVC core application.Created resource files for each language.For Chinese, we have resource with zh-CN extension.

I see different behaviour of application when request is being made from google chrome and IE 11/Edge for Chinese language.

  1. Google Chrome - When request is being made from Chrome, in request header, i see accept-language as "zh-CN,zh;" and noticed that

CultureInfo.CurrentCulture.Name is correctly being set to zh-CN, hence application works perfectly.

  1. IE 11 - When request is being made from IE, in request header, i see accept-language as "zh-Hans-CN,zh-Hans;" and noticed that

CultureInfo.CurrentCulture.Name is set to en-Us(which is incorrect) and hence application fails to load in chinese language.

Need your inputs on this.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>