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.
- 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.
- 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.