mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-13 03:15:34 +02:00
Complete rework of the docs site, in three passes squashed into one change: 1. P0 fact corrections across the core-loop pages (agent access model, comment triggers and coalescing, issue lifecycle, offline/queue semantics, task states and retries, dispatch via realtime push). 2. Chinese rewrite as the authoring language: final 12-group IA, new "Core concepts" and "Put agents to work" pages, curated welcome page, permanent-UI quickstart (no onboarding-wizard dependency), operator reference restored (CLI command reference, webhook response codes, task state/timeout tables, config set keys, upgrade notes). 3. Verification and sync: every load-bearing claim re-checked against current main with file:line evidence (migration 103 auto-backfill, CLI-only trigger toggling, duplication semantics, COOKIE_DOMAIN, GitHub App variables, Qwen Code as the 17th provider); register standards applied to all 39 pages; en/ja/ko synced from zh with same-language heading anchors (verified, zero dead links); 17 product screenshots plus 2 diagrams wired in. Supporting fixes: i18n middleware no longer swallows /images assets, sidebar folder indent survives custom link padding, unused editorial components removed. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
81 lines
2.6 KiB
TypeScript
81 lines
2.6 KiB
TypeScript
import type { Translations } from "fumadocs-ui/i18n";
|
|
import type { Lang } from "./i18n";
|
|
|
|
// Fumadocs built-in UI strings (search, TOC, last-updated, etc.) per locale.
|
|
// English uses Fumadocs defaults so we only override Chinese.
|
|
export const uiTranslations: Partial<Record<Lang, Partial<Translations>>> = {
|
|
zh: {
|
|
search: "搜索",
|
|
searchNoResult: "没有找到结果",
|
|
toc: "本页目录",
|
|
tocNoHeadings: "无章节",
|
|
lastUpdate: "最后更新于",
|
|
chooseLanguage: "选择语言",
|
|
nextPage: "下一页",
|
|
previousPage: "上一页",
|
|
chooseTheme: "切换主题",
|
|
editOnGithub: "在 GitHub 上编辑",
|
|
},
|
|
ko: {
|
|
search: "검색",
|
|
searchNoResult: "결과가 없습니다",
|
|
toc: "이 페이지에서",
|
|
tocNoHeadings: "제목 없음",
|
|
lastUpdate: "마지막 업데이트",
|
|
chooseLanguage: "언어 선택",
|
|
nextPage: "다음 페이지",
|
|
previousPage: "이전 페이지",
|
|
chooseTheme: "테마 변경",
|
|
editOnGithub: "GitHub에서 편집",
|
|
},
|
|
ja: {
|
|
search: "検索",
|
|
searchNoResult: "結果が見つかりません",
|
|
toc: "このページの内容",
|
|
tocNoHeadings: "見出しなし",
|
|
lastUpdate: "最終更新",
|
|
chooseLanguage: "言語を選択",
|
|
nextPage: "次のページ",
|
|
previousPage: "前のページ",
|
|
chooseTheme: "テーマを変更",
|
|
editOnGithub: "GitHub で編集",
|
|
},
|
|
};
|
|
|
|
// Display name shown in the LanguageToggle dropdown.
|
|
export const localeLabels: Record<Lang, string> = {
|
|
en: "English",
|
|
zh: "简体中文",
|
|
ko: "한국어",
|
|
ja: "日本語",
|
|
};
|
|
|
|
// Copy for the welcome page (Hero + Byline). Pages are translated as MDX;
|
|
// this dict only carries TSX-rendered chrome above the MDX body.
|
|
export const homeCopy = {
|
|
en: {
|
|
eyebrow: "Multica Docs",
|
|
titleLead: "Humans and agents,",
|
|
titleAccent: "in one place.",
|
|
byline: ["Getting started", "Updated July 2026", "2 min read"],
|
|
},
|
|
zh: {
|
|
eyebrow: "Multica 文档",
|
|
titleLead: "Multica 是人类与 AI 智能体",
|
|
titleAccent: "共同工作的地方。",
|
|
byline: ["开始使用", "2026 年 7 月更新", "阅读约 2 分钟"],
|
|
},
|
|
ko: {
|
|
eyebrow: "Multica 문서",
|
|
titleLead: "사람과 에이전트,",
|
|
titleAccent: "한곳에서.",
|
|
byline: ["시작하기", "2026년 7월 업데이트", "약 2분 분량"],
|
|
},
|
|
ja: {
|
|
eyebrow: "Multica ドキュメント",
|
|
titleLead: "人とエージェントが、",
|
|
titleAccent: "一つの場所に。",
|
|
byline: ["はじめに", "2026年7月更新", "約2分で読めます"],
|
|
},
|
|
} as const satisfies Record<Lang, unknown>;
|