Show Chinese locale only when Chinese language signals are detected.

Hide the language switcher for English-only browsers; gate /zh via Accept-Language and a client cookie.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 19:50:37 +08:00
parent a59aaf1c8d
commit e2fa28e501
6 changed files with 169 additions and 7 deletions

View File

@@ -50,7 +50,8 @@
"lang": {
"label": "Language",
"en": "English",
"zh": "中文"
"zh": "中文",
"zhHint": "Shown when the browser or system prefers Chinese"
},
"footer": {
"offsets": "Flash @ 0x1000 / 0x8000 / 0xe000 / 0x10000",

View File

@@ -50,7 +50,8 @@
"lang": {
"label": "语言",
"en": "English",
"zh": "中文"
"zh": "中文",
"zhHint": "仅在检测到浏览器或系统中文时显示"
},
"footer": {
"offsets": "刷写地址 @ 0x1000 / 0x8000 / 0xe000 / 0x10000",