mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-05-28 17:59:39 +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 元素。
9 lines
363 B
JSON
9 lines
363 B
JSON
{
|
|
"version.label": {"message": "Next"},
|
|
"sidebar.docs.category.Getting Started": {"message": "快速开始"},
|
|
"sidebar.docs.category.Deployment": {"message": "部署"},
|
|
"sidebar.docs.category.Features": {"message": "功能特性"},
|
|
"sidebar.docs.category.Reference": {"message": "参考"},
|
|
"sidebar.docs.category.Development": {"message": "开发"}
|
|
}
|