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 — translate Embedding section's toggle + field strings
nash_suaec89189d326
diff --git a/src/components/settings/sections/embedding-section.tsx b/src/components/settings/sections/embedding-section.tsxindex e960054a..2092408f 100644--- a/src/components/settings/sections/embedding-section.tsx+++ b/src/components/settings/sections/embedding-section.tsx@@ -21,9 +21,9 @@ export function EmbeddingSection({ draft, setDraft }: Props) {<div className="flex items-center justify-between rounded-md border p-3"><div>- <div className="text-sm font-medium">启用向量搜索</div>+ <div className="text-sm font-medium">{t("settings.sections.embedding.enableLabel")}</div><div className="text-xs text-muted-foreground">- 关掉后搜索只走 token 匹配。+ {t("settings.sections.embedding.enableHint")}</div></div><button@@ -44,7 +44,7 @@ export function EmbeddingSection({ draft, setDraft }: Props) {{draft.embeddingEnabled && (<><div className="space-y-2">- <Label>Endpoint</Label>+ <Label>{t("settings.sections.embedding.endpoint")}</Label><Inputvalue={draft.embeddingEndpoint}onChange={(e) => setDraft("embeddingEndpoint", e.target.value)}@@ -53,17 +53,17 @@ export function EmbeddingSection({ draft, setDraft }: Props) {</div><div className="space-y-2">- <Label>API Key (optional)</Label>+ <Label>{t("settings.sections.embedding.apiKey")}</Label><Inputtype="password"value={draft.embeddingApiKey}onChange={(e) => setDraft("embeddingApiKey", e.target.value)}- placeholder="本地模型留空即可"+ placeholder={t("settings.sections.embedding.apiKeyPlaceholder")}/></div><div className="space-y-2">- <Label>Model</Label>+ <Label>{t("settings.sections.embedding.model")}</Label><Inputvalue={draft.embeddingModel}onChange={(e) => setDraft("embeddingModel", e.target.value)}diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex 3d5f2c80..c5a73902 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -110,7 +110,13 @@},"embedding": {"title": "Vector Embeddings",- "description": "Enable semantic search over wiki pages. The embedding endpoint runs at ingest time and at query time."+ "description": "Enable semantic search against your wiki. Works with any OpenAI-compatible /v1/embeddings endpoint. Local models (LM Studio, Ollama embedding) don't need an API key.",+ "enableLabel": "Enable vector search",+ "enableHint": "When off, search uses token matching only.",+ "endpoint": "Endpoint",+ "apiKey": "API Key (optional)",+ "apiKeyPlaceholder": "Leave empty for local models",+ "model": "Model"},"webSearch": {"title": "Web Search",diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex 36852eca..6cf02709 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -110,7 +110,13 @@},"embedding": {"title": "向量嵌入",- "description": "开启后可对 wiki 页面进行语义检索。嵌入接口在 ingest 时和查询时都会调用。"+ "description": "启用语义搜索。对任何 OpenAI 兼容的 /v1/embeddings endpoint 工作。本地模型(如 LM Studio、Ollama embedding)不需要 API Key。",+ "enableLabel": "启用向量搜索",+ "enableHint": "关掉后搜索只走 token 匹配。",+ "endpoint": "Endpoint",+ "apiKey": "API Key(可选)",+ "apiKeyPlaceholder": "本地模型留空即可",+ "model": "Model"},"webSearch": {"title": "网页搜索",