mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-09-07 08:26:42 +08:00
Docusaurus 3.10 会把 locale id 'zh-Hans' 规范化为 BCP 47 的 'zh-CN' 来
读取 i18n/ 目录。之前手工创建的 i18n/zh-Hans/ 目录 Docusaurus 识别不到,
导致中文版 SSR 输出仍是英文字符串,只有 URL 路由 /zh-Hans/ 生效。
同时修复 index.tsx 中 <Translate id={labelId}> 动态 id 问题:
write-translations 工具要求静态字符串,已拆分为三个独立的 Translate 元素。
15 lines
293 B
JSON
15 lines
293 B
JSON
{
|
|
"item.label.Docs": {
|
|
"message": "文档",
|
|
"description": "Navbar item: Docs"
|
|
},
|
|
"item.label.Downloads": {
|
|
"message": "下载",
|
|
"description": "Navbar item: Downloads"
|
|
},
|
|
"item.label.GitHub": {
|
|
"message": "GitHub",
|
|
"description": "Navbar item: GitHub"
|
|
}
|
|
}
|