Files
codewhale/web/lib/i18n/dictionaries/zh.ts
T
Hunter Bown 9e45780ba0 feat(web): community site for deepseek-tui.com (mobile + color refresh) (#1108)
First commit of the Next.js community site that powers
deepseek-tui.com, deployed via Cloudflare Workers / OpenNext.

This commit lands the scaffold and applies the visual + correctness
pass requested by community feedback:

- Palette: drop the cream/Anthropic-feel paper (#F4F1E8) for a
  DeepSeek-aligned cool white + soft gray (#FFFFFF / #F4F6FB), with
  indigo accents kept. Soften default hairlines so a pure-white
  background reads clean instead of harsh.
- Mobile: add a hamburger menu (mobile-menu.tsx) so phones can reach
  Install / Docs / Activity / Roadmap / Contribute — previously the
  link list was hidden on phones with no replacement. Tighter hero,
  flexible button row, viewport-safe code blocks, columnar grids
  collapse cleanly under 768px, and the printed-almanac center rule
  is desktop-only now (it sliced through narrow viewports).
- "How it works" diagram: replace the hand-rolled ASCII art (which
  misaligned under CJK monospace because Han characters take 2
  columns vs Latin's 1, per dhh's note in WeChat) with a real
  mermaid diagram rendered client-side via dynamic import. Uses the
  mermaid.live standard syntax 庄表伟 recommended.
- Issue #1104: the docs listed a `deepseek-cn` provider that the
  v0.8.16 binary doesn't accept (`ProviderArg` in crates/cli only
  has 9 variants; the 10th lives only in the legacy tui/config.rs).
  derive-facts.mjs now omits `deepseek-cn` until that variant is
  wired through the shared ProviderKind, and the install page's
  China-network recipe uses `base_url` / `DEEPSEEK_BASE_URL` (which
  actually works on v0.8.16) instead of the unsupported provider.

Auto-deploys via .github/workflows/deploy-web.yml on push to main.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 21:00:06 -05:00

62 lines
2.2 KiB
TypeScript

/**
* zh-CN dictionary — written for native mainland-Chinese developers.
* Full-width punctuation in CJK paragraphs. Natural phrasing, not calques from English.
*/
const zh = {
nav: {
links: [
{ href: "/zh/install", label: "安装", cn: "" },
{ href: "/zh/docs", label: "文档", cn: "" },
{ href: "/zh/feed", label: "动态", cn: "" },
{ href: "/zh/roadmap", label: "路线图", cn: "" },
{ href: "/zh/contribute", label: "参与贡献", cn: "" },
],
edition: "第 … 期",
online: "API · 在线",
install: "立即安装 →",
starGitHub: "★ GitHub",
},
footer: {
cols: [
{
title: "产品",
cn: "",
items: [
{ label: "安装指南", href: "/zh/install" },
{ label: "使用文档", href: "/zh/docs" },
{ label: "路线图", href: "/zh/roadmap" },
{ label: "版本发布", href: "https://github.com/Hmbown/deepseek-tui/releases" },
],
},
{
title: "社区",
cn: "",
items: [
{ label: "议题", href: "https://github.com/Hmbown/deepseek-tui/issues" },
{ label: "合并请求", href: "https://github.com/Hmbown/deepseek-tui/pulls" },
{ label: "讨论区", href: "https://github.com/Hmbown/deepseek-tui/discussions" },
{ label: "参与贡献", href: "/zh/contribute" },
],
},
{
title: "资源",
cn: "",
items: [
{ label: "活动动态", href: "/zh/feed" },
{ label: "行为准则", href: "https://github.com/Hmbown/deepseek-tui/blob/main/CODE_OF_CONDUCT.md" },
{ label: "安全策略", href: "https://github.com/Hmbown/deepseek-tui/blob/main/SECURITY.md" },
{ label: "MIT 许可证", href: "https://github.com/Hmbown/deepseek-tui/blob/main/LICENSE" },
],
},
],
tagline:
"基于 DeepSeek V4 的开源终端编程智能体。MIT 许可证。由一位维护者从得克萨斯独立维护。欢迎提交 Pull Request。",
crafted: "用心制作 · Made with care",
poweredBy: "本网站由 DeepSeek V4-Flash 协助维护",
mirrors: "镜像源",
},
localeSwitch: { en: "EN", zh: "中文" },
};
export default zh;