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: i18n — complete Settings coverage (LLM row tooltips + update dot)
nash_sudea931bfe259
diff --git a/src/components/layout/icon-sidebar.tsx b/src/components/layout/icon-sidebar.tsxindex eb2e9652..8b1e02b1 100644--- a/src/components/layout/icon-sidebar.tsx+++ b/src/components/layout/icon-sidebar.tsx@@ -146,13 +146,13 @@ export function IconSidebar({ onSwitchProject }: IconSidebarProps) {// it automatically via shouldShowUpdateBanner.<spanclassName="absolute right-1 top-1 h-2 w-2 rounded-full bg-primary ring-2 ring-muted/50"- title="有可用更新"+ title={t("nav.updateAvailable")}/>)}</TooltipTrigger><TooltipContent side="right">{t("nav.settings")}- {updateBannerVisible ? " · 有更新" : ""}+ {updateBannerVisible ? t("nav.updateAvailableSuffix") : ""}</TooltipContent></Tooltip><Tooltip>diff --git a/src/components/settings/sections/llm-provider-section.tsx b/src/components/settings/sections/llm-provider-section.tsxindex 5afc2713..de514918 100644--- a/src/components/settings/sections/llm-provider-section.tsx+++ b/src/components/settings/sections/llm-provider-section.tsx@@ -110,6 +110,7 @@ function PresetRow({onToggleExpand,onChange,}: PresetRowProps) {+ const { t } = useTranslation()const ov = override ?? {}const model = ov.model ?? preset.defaultModel ?? ""const apiKey = ov.apiKey ?? ""@@ -131,7 +132,7 @@ function PresetRow({type="button"onClick={onToggleExpand}className="shrink-0 rounded p-0.5 text-muted-foreground hover:bg-accent"- title={isExpanded ? "收起" : "展开配置"}+ title={isExpanded ? t("settings.sections.llm.collapse") : t("settings.sections.llm.expand")}>{isExpanded ? (<ChevronDown className="h-4 w-4" />@@ -149,16 +150,16 @@ function PresetRow({<span className="truncate text-sm font-medium">{preset.label}</span>{hasConfig && !isActive && (<span className="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground">- 已配置+ {t("settings.sections.llm.configuredBadge")}</span>)}{isActive && (<span className="shrink-0 rounded-full bg-primary/20 px-1.5 py-0.5 text-[10px] font-medium text-primary">- ● 活跃+ {t("settings.sections.llm.activeBadge")}</span>)}{savedHere && (- <span className="shrink-0 text-[10px] text-emerald-600">已保存</span>+ <span className="shrink-0 text-[10px] text-emerald-600">{t("settings.sections.llm.savedBadge")}</span>)}</div>{preset.hint && (@@ -177,7 +178,7 @@ function PresetRow({? "border-primary bg-primary": "border-muted-foreground/30 bg-muted-foreground/20 hover:bg-muted-foreground/30"}`}- title={isActive ? "点击关闭" : "点击启用(会关闭其他 provider)"}+ title={isActive ? t("settings.sections.llm.toggleOff") : t("settings.sections.llm.toggleOn")}aria-label={isActive ? "Deactivate" : "Activate"}><span@@ -193,12 +194,12 @@ function PresetRow({<div className="space-y-4 border-t bg-background/50 px-4 py-3">{preset.provider === "custom" && (<div className="space-y-2">- <Label>API 模式</Label>+ <Label>API Mode</Label><div className="flex flex-wrap gap-2">{([- { value: "chat_completions", label: "OpenAI 兼容" },- { value: "anthropic_messages", label: "Anthropic 兼容" },+ { value: "chat_completions", labelKey: "settings.sections.llm.wireOpenAi" },+ { value: "anthropic_messages", labelKey: "settings.sections.llm.wireAnthropic" },] as const).map((m) => {const active = apiMode === m.value@@ -223,7 +224,7 @@ function PresetRow({: "border-border hover:bg-accent"}`}>- {m.label}+ {t(m.labelKey)}</button>)})}@@ -249,8 +250,8 @@ function PresetRow({onChange={(e) => onChange({ apiKey: e.target.value })}placeholder={preset.provider === "custom"- ? "无 Key 可留空(本地模型)"- : "Enter your API key"+ ? t("settings.sections.llm.apiKeyPlaceholderCustom")+ : t("settings.sections.llm.apiKeyPlaceholder")}/></div>diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex c5a73902..a29c4fcb 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -11,7 +11,9 @@"lint": "Lint","review": "Review","settings": "Settings",- "switchProject": "Switch Project"+ "switchProject": "Switch Project",+ "updateAvailable": "Update available",+ "updateAvailableSuffix": " · update"},"welcome": {"newProject": "New Project",@@ -106,7 +108,18 @@"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."+ "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.",+ "expand": "Expand config",+ "collapse": "Collapse",+ "toggleOff": "Click to deactivate",+ "toggleOn": "Click to activate (turns off other providers)",+ "wireOpenAi": "OpenAI-compat",+ "wireAnthropic": "Anthropic-compat",+ "apiKeyPlaceholderCustom": "Leave empty if no key (local models)",+ "apiKeyPlaceholder": "Enter your API key",+ "savedBadge": "saved",+ "configuredBadge": "configured",+ "activeBadge": "● active"},"embedding": {"title": "Vector Embeddings",diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex 6cf02709..f8162f2b 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -11,7 +11,9 @@"lint": "检查","review": "待审阅","settings": "设置",- "switchProject": "切换项目"+ "switchProject": "切换项目",+ "updateAvailable": "有可用更新",+ "updateAvailableSuffix": " · 有更新"},"welcome": {"newProject": "新建项目",@@ -106,7 +108,18 @@"sections": {"llm": {"title": "LLM 模型",- "description": "每个厂商一条独立配置。打开开关即切换为当前活跃 provider;其他的会自动关闭。配置改动即时保存,每个厂商的 API Key 独立存储,切换之间不丢失。"+ "description": "每个厂商一条独立配置。打开开关即切换为当前活跃 provider;其他的会自动关闭。配置改动即时保存,每个厂商的 API Key 独立存储,切换之间不丢失。",+ "expand": "展开配置",+ "collapse": "收起",+ "toggleOff": "点击关闭",+ "toggleOn": "点击启用(会关闭其他 provider)",+ "wireOpenAi": "OpenAI 兼容",+ "wireAnthropic": "Anthropic 兼容",+ "apiKeyPlaceholderCustom": "无 Key 可留空(本地模型)",+ "apiKeyPlaceholder": "请输入 API Key",+ "savedBadge": "已保存",+ "configuredBadge": "已配置",+ "activeBadge": "● 活跃"},"embedding": {"title": "向量嵌入",