返回 CodeWhale
chrome.ts
根目录 / web / lib / i18n / dictionaries / en / chrome.ts
1 import type { ChromeDict } from "../types";
2
3 /**
4 * English reference chrome dictionary. Every other locale must match these
5 * keys exactly (`npm run check:locales`, `dictionaries.test.ts`).
6 *
7 * The Han secondary labels and the 深 wordmark seal are the English
8 * edition's own editorial device — the newspaper masthead sets them beside
9 * the Latin labels on purpose. Other locales pair their native label with a
10 * short English one instead; nothing hardcodes Han at a call site.
11 */
12 export const chrome: ChromeDict = {
13 navDocs: "Docs",
14 navStart: "Start",
15 navInstall: "Install",
16 navFaq: "FAQ",
17 navCommunity: "Community",
18 navContribute: "Contribute",
19
20 navDocsSecondary: "文档",
21 navStartSecondary: "指引",
22 navInstallSecondary: "安装",
23 navFaqSecondary: "问答",
24 navCommunitySecondary: "社区",
25 navContributeSecondary: "贡献",
26
27 skipToContent: "Skip to main content",
28
29
30 navPrimaryAria: "Primary",
31 navHomeAria: "Codewhale home",
32
33 installCta: "Install →",
34
35 wordmarkSeal: "深",
36 wordmarkTag: "any model, local-first",
37
38 issueLabel: "Issue {date}",
39 dateLocale: "en-US",
40
41 starsAria: "GitHub stars",
42 githubFallback: "GitHub",
43
44 tickerLiveLabel: "实 时",
45 tickerLiveTag: "LIVE",
46 tickerMerged: "merged",
47 tickerOpened: "opened",
48 tickerClosed: "closed",
49 tickerReleased: "released",
50 tickerFirstContribution: "first contribution",
51 tickerBy: "by {handle}",
52 tickerAria: "Recent repository activity",
53
54 traceLabel: "reasoning trace",
55 traceTabsAria: "Session excerpts",
56
57 menuOpen: "Open menu",
58 menuClose: "Close menu",
59
60 themeAuto: "auto",
61 themeLight: "light",
62 themeDark: "dark",
63 themeAria: "Docs theme: {mode} (click to cycle)",
64 themeTitle: "Docs theme · auto / light / dark",
65
66 footerTagline:
67 "Dive into the deep so you don't have to — docs, source, and community for the open-source runtime.",
68 footerProduct: "Product",
69 footerProject: "Project",
70 footerDocs: "Docs",
71 footerGuide: "Getting started",
72 footerInstall: "Install",
73 footerModels: "Models",
74 footerRuntime: "Runtime",
75 footerFaq: "FAQ",
76 footerIssues: "Issues",
77 footerContribute: "Contribute",
78 footerLicense: "MIT license",
79 footerCanonicalSource: "Canonical source: ",
80 footerReleases: " · Releases: ",
81 footerReleasesLink: "GitHub Releases",
82 footerSecurity: "Security",
83
84 switcherLabel: "Language",
85 switcherSwitchTo: "Switch to {label}",
86 partialBadge: "(partial)",
87 };
88
88 lines TYPESCRIPT