Since last few months I got the problem to detect countryCode from window.navigator.language. My current language on chrome is French(Switzerland)
Currently it return only the language:
window.navigator.language: fr
It was return language-contryCode:
window.navigator.languge: fr-ch
I did a lot of try but currently I cannot detect it from chrome browser. Do you have any idea to solve this problem ? updated: This is my current setting: And here is the result from chrome:
Hope I will get some help. Thank you
It seems to be a bug, and it has been reported to chromium
navigator.language result differs between english and other languages
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.