Add bilingual docs center and replace the guide modal

This commit is contained in:
2569718930@qq.com
2026-03-25 15:55:55 +08:00
parent b866ebf6e3
commit 4e0ddfa771
16 changed files with 1229 additions and 137 deletions
+28
View File
@@ -0,0 +1,28 @@
import type { DocsLocale, DocsNavGroup } from "./docs";
export const DOCS_GROUPS: DocsNavGroup[] = [
{
id: "getting-started",
title: { "zh-CN": "开始", "en-US": "Getting Started" },
},
{
id: "analysis",
title: { "zh-CN": "分析逻辑", "en-US": "Analysis Logic" },
},
{
id: "settlement",
title: { "zh-CN": "结算与数据", "en-US": "Settlement & Data" },
},
{
id: "history",
title: { "zh-CN": "历史对账", "en-US": "History & Reconciliation" },
},
{
id: "developer",
title: { "zh-CN": "开发者", "en-US": "Developer" },
},
];
export function getDocsGroupTitle(groupId: DocsNavGroup["id"], locale: DocsLocale) {
return DOCS_GROUPS.find((group) => group.id === groupId)?.title[locale] || groupId;
}