简体   繁体   English

无法在 android 中将语言更改为“zh-CN”?

[英]Can't change language to 'zh-CN' in android?

i console the我安慰

console.log(Intl.DateTimeFormat.supportedLocalesOf(['zh-cn', 'zh-tw', 'zh']));

and shows并显示

['zh-CN', 'zh-TW', 'zh']

however, when I set the locale of react-calendar to 'zh' , the language is still English?但是,当我将 react-calendar 的locale'zh'时,语言仍然是英语吗?

update: when I didn't set the 'locale' of react-calendar and console the default language of the browser by executing navigator.language the console is更新:当我没有通过执行navigator.language设置 react-calendar 和控制台的“语言环境”时,控制台是浏览器的默认语言

zh-CN

however, the language is still English?但是,语言仍然是英语?

update: i check the arial-label attribute of <adbr></adbr> and found it is Tue Nov 30 2021 15:27:54 GMT+0800 (CST) which is strange since it is 2021年8月5日on PC.更新:我检查了<adbr></adbr>arial-label属性,发现它是Tue Nov 30 2021 15:27:54 GMT+0800 (CST) ,这很奇怪,因为它在 PC 上是2021年8月5日. And i console the locale in formatDay function, the console is 'zh-CN' .我在formatDay function 中控制locale ,控制台是'zh-CN'

I check carefully and found it is the problem of browser of THE APP self, not the problem of the react-calendar仔细检查发现是APP本身浏览器的问题,不是react-calendar的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM