Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.navigator.language.toLowerCase() == 'zh-cn' 该方法判断是否中文不严谨 #80

Open
ZTrainWilliams opened this issue Jun 11, 2019 · 2 comments

Comments

@ZTrainWilliams
Copy link

windows8的IE10语言包名称有变化,原来我们是zh_CN或zh_TW,现在是zh-Hans-CN,zh-Hans,zh-Hans-TW,这导致原来程序利用浏览器的HTTP_ACCEPT_LANGUAGE来自动识别用户语言的功能受影响,相关程序必须做调整。现在还发现不仅IE会这样,发现部分国内手机都识别 zh-Hans-CN,例:华为-mate20pro、iphone6S

@jinzhe
Copy link
Owner

jinzhe commented Jun 11, 2019

如果默认无法满足可以调用的时候自己定义数组即可。ie都忘记有他的存在了

@2277419213
Copy link

大中国好像都是zh开头的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants