LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
fix: Settings UI respects the English language setting (#53)
nash_su59f334dcf77c
diff --git a/src/components/settings/sections/about-section.tsx b/src/components/settings/sections/about-section.tsxindex 7b5ca7cb..5622e7ac 100644--- a/src/components/settings/sections/about-section.tsx+++ b/src/components/settings/sections/about-section.tsx@@ -1,5 +1,6 @@import { useEffect, useState, useCallback } from "react"import { Download, RefreshCw, CheckCircle2, Sparkles } from "lucide-react"+import { useTranslation } from "react-i18next"import { clipServerStatus } from "@/commands/fs"import { Button } from "@/components/ui/button"import { useUpdateStore, shouldShowUpdateBanner } from "@/stores/update-store"@@ -7,6 +8,7 @@ import { checkForUpdates } from "@/lib/update-check"import { saveUpdateCheckState } from "@/lib/project-store"export function AboutSection() {+ const { t } = useTranslation()const [clipStatus, setClipStatus] = useState<string>("...")const updateStore = useUpdateStore()@@ -65,8 +67,8 @@ export function AboutSection() {}, [])const rows: Array<{ label: string; value: string; mono?: boolean }> = [- { label: "版本", value: `v${__APP_VERSION__}`, mono: true },- { label: "Clip Server", value: `${clipStatus} @ 127.0.0.1:19827`, mono: true },+ { label: t("settings.sections.about.version"), value: `v${__APP_VERSION__}`, mono: true },+ { label: t("settings.sections.about.clipServer"), value: `${clipStatus} @ 127.0.0.1:19827`, mono: true },]const showBanner = shouldShowUpdateBanner(updateStore)@@ -77,16 +79,16 @@ export function AboutSection() {// user's network" (common in mainland China). Not actionable,// so don't display a colored warning — keep the status in the// same muted timestamp line and move on.- ? `${formatRelative(updateStore.lastCheckedAt)} · 未能连接 GitHub`- : formatRelative(updateStore.lastCheckedAt)- : "从未"+ ? `${formatRelative(updateStore.lastCheckedAt, t)} · ${t("settings.sections.about.unreachable")}`+ : formatRelative(updateStore.lastCheckedAt, t)+ : t("settings.sections.about.lastCheckedNever")return (<div className="space-y-6"><div>- <h2 className="text-xl font-semibold">关于</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.about.title")}</h2><p className="mt-1 text-sm text-muted-foreground">- 构建信息和运行时状态。+ {t("settings.sections.about.description")}</p></div>@@ -103,9 +105,9 @@ export function AboutSection() {<div className="space-y-3 rounded-md border p-4"><div className="flex items-center justify-between gap-3"><div className="min-w-0">- <div className="text-sm font-medium">更新检查</div>+ <div className="text-sm font-medium">{t("settings.sections.about.updateCheck")}</div><div className="mt-0.5 text-xs text-muted-foreground">- 上次检查:{lastCheckedLabel}+ {t("settings.sections.about.lastChecked")}: {lastCheckedLabel}</div></div><Button@@ -118,7 +120,9 @@ export function AboutSection() {<RefreshCwclassName={`h-3.5 w-3.5 ${updateStore.checking ? "animate-spin" : ""}`}/>- {updateStore.checking ? "检查中…" : "立即检查"}+ {updateStore.checking+ ? t("settings.sections.about.checking")+ : t("settings.sections.about.checkNow")}</Button></div>@@ -135,13 +139,13 @@ export function AboutSection() {{!showBanner && updateStore.lastResult?.kind === "up-to-date" && (<div className="flex items-center gap-2 rounded border border-emerald-500/30 bg-emerald-500/5 px-3 py-2 text-sm text-emerald-700 dark:text-emerald-400"><CheckCircle2 className="h-4 w-4 shrink-0" />- 已是最新版本(v{updateStore.lastResult.local})。+ {t("settings.sections.about.upToDate", { version: updateStore.lastResult.local })}</div>)}{/* error state intentionally has no banner — see the timestamp- line above for the muted "未能连接 GitHub" hint. GitHub is- regularly unreachable from certain networks (notably+ line above for the muted "couldn't reach GitHub" hint. GitHub+ is regularly unreachable from certain networks (notablymainland China) and a colored warning would misleadinglylook like a bug in the app. */}@@ -152,14 +156,14 @@ export function AboutSection() {onChange={handleToggleAutoCheck}className="h-3.5 w-3.5"/>- 应用启动时自动检查更新(每 6 小时最多一次)+ {t("settings.sections.about.autoCheck")}</label></div><div className="rounded-md border p-4 text-sm"><div className="font-medium">LLM Wiki</div><p className="mt-1 text-xs text-muted-foreground">- An LLM-driven personal knowledge base. Source:+ {t("settings.sections.about.appDescription")}{" "}<aclassName="underline underline-offset-2 hover:text-primary"@@ -190,6 +194,7 @@ function UpdateAvailableBanner({releaseBody,onDismiss,}: UpdateAvailableBannerProps) {+ const { t } = useTranslation()const handleOpen = () => {// window.open with target=_blank delegates to the system browser// in Tauri via the opener plugin registered in src-tauri/src/lib.rs.@@ -204,7 +209,7 @@ function UpdateAvailableBanner({<div className="rounded border border-primary/40 bg-primary/5 p-3"><div className="flex items-center gap-2 text-sm font-medium text-primary"><Sparkles className="h-4 w-4 shrink-0" />- 有可用更新:v{remote.replace(/^v/, "")}+ {t("settings.sections.about.updateAvailable", { version: remote.replace(/^v/, "") })}</div>{releaseName && releaseName !== `v${remote.replace(/^v/, "")}` && (<div className="mt-1 text-xs text-muted-foreground">{releaseName}</div>@@ -218,24 +223,26 @@ function UpdateAvailableBanner({<div className="mt-3 flex items-center gap-2"><Button size="sm" onClick={handleOpen} className="gap-1.5"><Download className="h-3.5 w-3.5" />- 打开下载页+ {t("settings.sections.about.openDownload")}</Button><Button size="sm" variant="ghost" onClick={onDismiss}>- 稍后+ {t("settings.sections.about.later")}</Button></div></div>)}-function formatRelative(timestamp: number): string {+/** Translated relative-time formatter. Signature accepts a `t` passed+ * in from the caller so the function stays pure and unit-testable. */+function formatRelative(timestamp: number, t: (key: string, opts?: Record<string, unknown>) => string): string {const delta = Date.now() - timestamp- if (delta < 0) return "just now"+ if (delta < 0) return t("time.justNow", { defaultValue: "just now" })const mins = Math.floor(delta / 60_000)- if (mins < 1) return "刚刚"- if (mins < 60) return `${mins} 分钟前`+ if (mins < 1) return t("time.justNow", { defaultValue: "just now" })+ if (mins < 60) return t("time.minutesAgo", { count: mins, defaultValue: `${mins} min ago` })const hours = Math.floor(mins / 60)- if (hours < 24) return `${hours} 小时前`+ if (hours < 24) return t("time.hoursAgo", { count: hours, defaultValue: `${hours} h ago` })const days = Math.floor(hours / 24)- return `${days} 天前`+ return t("time.daysAgo", { count: days, defaultValue: `${days} d ago` })}diff --git a/src/components/settings/sections/embedding-section.tsx b/src/components/settings/sections/embedding-section.tsxindex a8bfa279..e960054a 100644--- a/src/components/settings/sections/embedding-section.tsx+++ b/src/components/settings/sections/embedding-section.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"import type { SettingsDraft, DraftSetter } from "../settings-types"@@ -8,13 +9,13 @@ interface Props {}export function EmbeddingSection({ draft, setDraft }: Props) {+ const { t } = useTranslation()return (<div className="space-y-6"><div>- <h2 className="text-xl font-semibold">向量嵌入</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.embedding.title")}</h2><p className="mt-1 text-sm text-muted-foreground">- 启用语义搜索。对任何 OpenAI 兼容的 /v1/embeddings endpoint 工作。- 本地模型(如 LM Studio、Ollama embedding)不需要 API Key。+ {t("settings.sections.embedding.description")}</p></div>diff --git a/src/components/settings/sections/interface-section.tsx b/src/components/settings/sections/interface-section.tsxindex 954f287c..1af4c3f9 100644--- a/src/components/settings/sections/interface-section.tsx+++ b/src/components/settings/sections/interface-section.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next"import { Label } from "@/components/ui/label"import type { SettingsDraft, DraftSetter } from "../settings-types"@@ -12,17 +13,18 @@ const UI_LANGUAGES = []export function InterfaceSection({ draft, setDraft }: Props) {+ const { t } = useTranslation()return (<div className="space-y-6"><div>- <h2 className="text-xl font-semibold">界面</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.interface.title")}</h2><p className="mt-1 text-sm text-muted-foreground">- 应用 UI 的显示语言。切换后立即生效并持久化。+ {t("settings.sections.interface.description")}</p></div><div className="space-y-2">- <Label>UI 语言</Label>+ <Label>{t("settings.sections.interface.uiLanguage")}</Label><div className="flex flex-wrap gap-2">{UI_LANGUAGES.map((l) => {const active = draft.uiLanguage === l.value@@ -43,7 +45,7 @@ export function InterfaceSection({ draft, setDraft }: Props) {})}</div><p className="text-xs text-muted-foreground">- 只影响按钮、标签这些 UI 文案,不影响 AI 输出语言(那个在"输出偏好"里单独设置)。+ {t("settings.sections.interface.uiLanguageHint")}</p></div></div>diff --git a/src/components/settings/sections/llm-provider-section.tsx b/src/components/settings/sections/llm-provider-section.tsxindex 55f499a4..5afc2713 100644--- a/src/components/settings/sections/llm-provider-section.tsx+++ b/src/components/settings/sections/llm-provider-section.tsx@@ -1,5 +1,6 @@import { useMemo, useState } from "react"import { ChevronDown, ChevronRight, AlertCircle, CheckCircle2 } from "lucide-react"+import { useTranslation } from "react-i18next"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"import { useWikiStore, type ProviderOverride } from "@/stores/wiki-store"@@ -9,6 +10,7 @@ import { resolveConfig } from "../preset-resolver"import { normalizeEndpoint } from "@/lib/endpoint-normalizer"export function LlmProviderSection() {+ const { t } = useTranslation()const providerConfigs = useWikiStore((s) => s.providerConfigs)const setProviderConfigs = useWikiStore((s) => s.setProviderConfigs)const activePresetId = useWikiStore((s) => s.activePresetId)@@ -62,10 +64,9 @@ export function LlmProviderSection() {return (<div className="space-y-4"><div>- <h2 className="text-xl font-semibold">LLM 模型</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.llm.title")}</h2><p className="mt-1 text-sm text-muted-foreground">- 每个厂商一条独立配置。打开开关即切换为当前活跃 provider;其他的会自动关闭。- 配置改动即时保存,每个厂商的 API Key 独立存储,切换之间不丢失。+ {t("settings.sections.llm.description")}</p></div>diff --git a/src/components/settings/sections/output-section.tsx b/src/components/settings/sections/output-section.tsxindex db80a03d..15884b4f 100644--- a/src/components/settings/sections/output-section.tsx+++ b/src/components/settings/sections/output-section.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next"import { Label } from "@/components/ui/label"import type { SettingsDraft, DraftSetter } from "../settings-types"@@ -33,20 +34,20 @@ const LANGUAGE_OPTIONS = [const HISTORY_OPTIONS = [2, 4, 6, 8, 10, 20]export function OutputSection({ draft, setDraft }: Props) {+ const { t } = useTranslation()return (<div className="space-y-6"><div>- <h2 className="text-xl font-semibold">输出偏好</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.output.title")}</h2><p className="mt-1 text-sm text-muted-foreground">- 控制 AI 生成内容的语言和对话上下文长度。+ {t("settings.sections.output.description")}</p></div><div className="space-y-2">- <Label>AI 输出语言</Label>+ <Label>{t("settings.sections.output.aiLanguage")}</Label><p className="text-xs text-muted-foreground">- 强制 AI 生成内容(chat 回复、wiki 页面、research 结果、lint 报告)使用指定语言。- 选 "Auto" 让 AI 跟随用户输入或源文档的语言。+ {t("settings.sections.output.aiLanguageHint")}</p><selectvalue={draft.outputLanguage}@@ -62,9 +63,9 @@ export function OutputSection({ draft, setDraft }: Props) {</div><div className="space-y-2">- <Label>对话历史长度</Label>+ <Label>{t("settings.sections.output.historyLength")}</Label><p className="text-xs text-muted-foreground">- 每次请求发给 AI 的历史消息条数。多 = 上下文更完整但更费 token。+ {t("settings.sections.output.historyHint")}</p><div className="flex flex-wrap gap-2">{HISTORY_OPTIONS.map((n) => {@@ -86,7 +87,10 @@ export function OutputSection({ draft, setDraft }: Props) {})}</div><p className="text-xs text-muted-foreground">- 当前 {draft.maxHistoryMessages} 条消息(约 {draft.maxHistoryMessages / 2} 轮对话)+ {t("settings.sections.output.historyCurrent", {+ count: draft.maxHistoryMessages,+ turns: draft.maxHistoryMessages / 2,+ })}</p></div></div>diff --git a/src/components/settings/sections/web-search-section.tsx b/src/components/settings/sections/web-search-section.tsxindex bed91826..3c15e219 100644--- a/src/components/settings/sections/web-search-section.tsx+++ b/src/components/settings/sections/web-search-section.tsx@@ -1,3 +1,4 @@+import { useTranslation } from "react-i18next"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"import type { SettingsDraft, DraftSetter } from "../settings-types"@@ -8,6 +9,7 @@ interface Props {}export function WebSearchSection({ draft, setDraft }: Props) {+ const { t } = useTranslation()const options = [{ value: "none" as const, label: "Disabled" },{ value: "tavily" as const, label: "Tavily" },@@ -16,14 +18,14 @@ export function WebSearchSection({ draft, setDraft }: Props) {return (<div className="space-y-6"><div>- <h2 className="text-xl font-semibold">网页搜索 (Deep Research)</h2>+ <h2 className="text-xl font-semibold">{t("settings.sections.webSearch.title")} (Deep Research)</h2><p className="mt-1 text-sm text-muted-foreground">- 允许 AI 在发现知识缺口时自动调用网页搜索补充资料。目前接入 Tavily。+ {t("settings.sections.webSearch.description")}</p></div><div className="space-y-2">- <Label>搜索 Provider</Label>+ <Label>{t("settings.sections.webSearch.provider", { defaultValue: "Search Provider" })}</Label><div className="flex flex-wrap gap-2">{options.map((p) => {const active = draft.searchProvider === p.valuediff --git a/src/components/settings/settings-view.tsx b/src/components/settings/settings-view.tsxindex 95bb918a..2ddbc624 100644--- a/src/components/settings/settings-view.tsx+++ b/src/components/settings/settings-view.tsx@@ -7,6 +7,7 @@ import {Palette,Info,} from "lucide-react"+import { useTranslation } from "react-i18next"import i18n from "@/i18n"import { Button } from "@/components/ui/button"import { useWikiStore } from "@/stores/wiki-store"@@ -30,17 +31,20 @@ type CategoryId =interface Category {id: CategoryId- label: string+ /** i18n key under settings.categories — resolved at render time so+ * switching language in Settings → Interface takes effect without+ * remounting this component (Bug #53). */+ labelKey: stringicon: typeof Bot}const CATEGORIES: Category[] = [- { id: "llm", label: "LLM 模型", icon: Bot },- { id: "embedding", label: "向量嵌入", icon: Binary },- { id: "web-search", label: "网页搜索", icon: Globe },- { id: "output", label: "输出偏好", icon: Languages },- { id: "interface", label: "界面", icon: Palette },- { id: "about", label: "关于", icon: Info },+ { id: "llm", labelKey: "settings.categories.llm", icon: Bot },+ { id: "embedding", labelKey: "settings.categories.embedding", icon: Binary },+ { id: "web-search", labelKey: "settings.categories.webSearch", icon: Globe },+ { id: "output", labelKey: "settings.categories.output", icon: Languages },+ { id: "interface", labelKey: "settings.categories.interface", icon: Palette },+ { id: "about", labelKey: "settings.categories.about", icon: Info },]function initialDraft(@@ -72,6 +76,7 @@ function initialDraft(}export function SettingsView() {+ const { t } = useTranslation()const llmConfig = useWikiStore((s) => s.llmConfig)const setLlmConfig = useWikiStore((s) => s.setLlmConfig)const searchApiConfig = useWikiStore((s) => s.searchApiConfig)@@ -198,7 +203,7 @@ export function SettingsView() {pattern so the two navigational surfaces feel like one app. */}<aside className="flex w-56 shrink-0 flex-col border-r bg-muted/30"><div className="px-4 pb-2 pt-4 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground">- Settings+ {t("settings.title")}</div><nav className="flex-1 overflow-y-auto px-2 pb-3">{CATEGORIES.map((c) => {@@ -221,7 +226,7 @@ export function SettingsView() {isActive ? "text-primary" : "text-muted-foreground/80 group-hover:text-accent-foreground"}`}/>- <span className="truncate">{c.label}</span>+ <span className="truncate">{t(c.labelKey)}</span></button>)})}@@ -241,10 +246,10 @@ export function SettingsView() {<div className="shrink-0 border-t bg-background/80 backdrop-blur px-8 py-3"><div className="mx-auto flex max-w-2xl items-center justify-between gap-4"><p className="text-xs text-muted-foreground">- {saved ? "已保存 ✓" : "改动会在保存后应用。"}+ {saved ? t("settings.savedTick") : t("settings.changeHint")}</p><Button onClick={handleSave}>- {saved ? "Saved" : "Save"}+ {saved ? t("settings.saved") : t("settings.save")}</Button></div></div>diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex fe7f8b6d..3d5f2c80 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -89,10 +89,67 @@"customEndpointHint": "Any OpenAI-compatible API endpoint (e.g., LiteLLM, vLLM, LocalAI, Azure OpenAI)","customApiKey": "Enter API key (if required)","modelPlaceholder": "Enter model name",- "save": "Save Settings",- "saved": "Saved!",+ "save": "Save",+ "saved": "Saved",+ "savedTick": "Saved ✓",+ "changeHint": "Changes apply after saving.","language": "Language",- "languageHint": "Interface language (wiki content follows source material language)"+ "languageHint": "Interface language (wiki content follows source material language)",+ "categories": {+ "llm": "LLM Models",+ "embedding": "Embeddings",+ "webSearch": "Web Search",+ "output": "Output",+ "interface": "Interface",+ "about": "About"+ },+ "sections": {+ "llm": {+ "title": "LLM Models",+ "description": "One row per vendor. Toggling one on automatically turns off the others. Changes save instantly; each vendor's API key is stored independently so switching doesn't lose data."+ },+ "embedding": {+ "title": "Vector Embeddings",+ "description": "Enable semantic search over wiki pages. The embedding endpoint runs at ingest time and at query time."+ },+ "webSearch": {+ "title": "Web Search",+ "description": "Used by Deep Research to pull fresh external context."+ },+ "output": {+ "title": "Output Preferences",+ "description": "Controls for generated content — language, conversation history length.",+ "aiLanguage": "AI Output Language",+ "aiLanguageHint": "Force AI-generated content (chat replies, wiki pages, research output, lint reports) to use the selected language. Pick \"Auto\" to let the AI follow the user's input or source document language.",+ "historyLength": "Conversation History Length",+ "historyHint": "Number of prior messages sent to the AI on each request. More = richer context but more tokens.",+ "historyCurrent": "Currently {{count}} messages (about {{turns}} turns)"+ },+ "interface": {+ "title": "Interface",+ "description": "UI language and appearance. Changes apply immediately and persist.",+ "uiLanguage": "UI Language",+ "uiLanguageHint": "Affects labels, buttons, and other UI strings only. The AI output language is set separately in Output Preferences."+ },+ "about": {+ "title": "About",+ "description": "Build info and runtime status.",+ "version": "Version",+ "clipServer": "Clip Server",+ "updateCheck": "Update Check",+ "lastChecked": "Last checked",+ "lastCheckedNever": "Never",+ "unreachable": "couldn't reach GitHub",+ "checkNow": "Check now",+ "checking": "Checking…",+ "upToDate": "Up to date (v{{version}}).",+ "updateAvailable": "Update available: v{{version}}",+ "openDownload": "Open download page",+ "later": "Later",+ "autoCheck": "Check for updates automatically on startup (at most once every 6 hours)",+ "appDescription": "An LLM-driven personal knowledge base. Source:"+ }+ }},"preview": {"selectFile": "Select a file to preview",@@ -105,5 +162,11 @@},"fileTree": {"noProject": "No project open"+ },+ "time": {+ "justNow": "just now",+ "minutesAgo": "{{count}} min ago",+ "hoursAgo": "{{count}} h ago",+ "daysAgo": "{{count}} d ago"}}diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex bcf30303..36852eca 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -89,10 +89,67 @@"customEndpointHint": "任何兼容 OpenAI 的 API 端点(如 LiteLLM、vLLM、LocalAI、Azure OpenAI)","customApiKey": "请输入 API 密钥(如需要)","modelPlaceholder": "请输入模型名称",- "save": "保存设置",- "saved": "已保存!",+ "save": "保存",+ "saved": "已保存",+ "savedTick": "已保存 ✓",+ "changeHint": "改动会在保存后应用。","language": "语言",- "languageHint": "界面语言(Wiki 内容语言以原始资料为准)"+ "languageHint": "界面语言(Wiki 内容语言以原始资料为准)",+ "categories": {+ "llm": "LLM 模型",+ "embedding": "向量嵌入",+ "webSearch": "网页搜索",+ "output": "输出偏好",+ "interface": "界面",+ "about": "关于"+ },+ "sections": {+ "llm": {+ "title": "LLM 模型",+ "description": "每个厂商一条独立配置。打开开关即切换为当前活跃 provider;其他的会自动关闭。配置改动即时保存,每个厂商的 API Key 独立存储,切换之间不丢失。"+ },+ "embedding": {+ "title": "向量嵌入",+ "description": "开启后可对 wiki 页面进行语义检索。嵌入接口在 ingest 时和查询时都会调用。"+ },+ "webSearch": {+ "title": "网页搜索",+ "description": "Deep Research 会用它拉取最新的外部上下文。"+ },+ "output": {+ "title": "输出偏好",+ "description": "影响生成内容的语言、对话历史长度等参数。",+ "aiLanguage": "AI 输出语言",+ "aiLanguageHint": "强制 AI 生成内容(chat 回复、wiki 页面、research 结果、lint 报告)使用指定语言。选 \"Auto\" 让 AI 跟随用户输入或源文档的语言。",+ "historyLength": "对话历史长度",+ "historyHint": "每次请求发给 AI 的历史消息条数。多 = 上下文更完整但更费 token。",+ "historyCurrent": "当前 {{count}} 条消息(约 {{turns}} 轮对话)"+ },+ "interface": {+ "title": "界面",+ "description": "界面语言和外观样式。切换后立即生效并持久化。",+ "uiLanguage": "UI 语言",+ "uiLanguageHint": "只影响按钮、标签这些 UI 文案,不影响 AI 输出语言(那个在\"输出偏好\"里单独设置)。"+ },+ "about": {+ "title": "关于",+ "description": "构建信息和运行时状态。",+ "version": "版本",+ "clipServer": "Clip 服务",+ "updateCheck": "更新检查",+ "lastChecked": "上次检查",+ "lastCheckedNever": "从未",+ "unreachable": "未能连接 GitHub",+ "checkNow": "立即检查",+ "checking": "检查中…",+ "upToDate": "已是最新版本(v{{version}})。",+ "updateAvailable": "有可用更新:v{{version}}",+ "openDownload": "打开下载页",+ "later": "稍后",+ "autoCheck": "应用启动时自动检查更新(每 6 小时最多一次)",+ "appDescription": "一个由 LLM 驱动的个人知识库。源代码:"+ }+ }},"preview": {"selectFile": "选择文件以预览",@@ -105,5 +162,11 @@},"fileTree": {"noProject": "未打开项目"+ },+ "time": {+ "justNow": "刚刚",+ "minutesAgo": "{{count}} 分钟前",+ "hoursAgo": "{{count}} 小时前",+ "daysAgo": "{{count}} 天前"}}