From 49c77a40c7745e84c5427e29336d3fc49a712124 Mon Sep 17 00:00:00 2001 From: Zhoulu Date: Wed, 14 Oct 2026 17:24:27 +0200 Subject: [PATCH 1/2] fix(web): move hardcoded feed placeholder to i18n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The custom source endpoint placeholder was the only hardcoded English string in the source modal — all sibling fields already used S.library.* keys. Move it to S.library.feedPlaceholder for consistency. --- web/src/i18n/en.ts | 1 + web/src/pages/Library.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 6676918fb..63a8505d5 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -679,6 +679,7 @@ export const en = { ingestGuide: "Read the ingest guide →", ingestGuideTitle: "Ingest interface guide", endpointField: "Endpoint URL", + feedPlaceholder: "https://your-service/utopia-feed", endpointCopied: "Endpoint URL copied", copyEndpoint: "Click to copy the full URL", // api 来源的推送状态(queued/running 不会出现,仅为类型完备) diff --git a/web/src/pages/Library.tsx b/web/src/pages/Library.tsx index 31d815f5c..3fe65b452 100644 --- a/web/src/pages/Library.tsx +++ b/web/src/pages/Library.tsx @@ -1578,7 +1578,7 @@ function SourceModal({ {field( S.library.endpointField, setEndpoint(e.target.value)} />, From 3578be8f42138bab53597d00087b7fc8c5adb05d Mon Sep 17 00:00:00 2001 From: Zhoulu Date: Wed, 14 Oct 2026 17:32:30 +0200 Subject: [PATCH 2/2] fix(i18n): add feedPlaceholder to zh.ts The previous commit added the key to en.ts but missed zh.ts, breaking the type check since both bundles must be structurally identical. --- web/src/i18n/zh.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index cc493763a..554e636e6 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -617,6 +617,7 @@ export const zh: Strings = { ingestGuide: "阅读摄入接口指南 →", ingestGuideTitle: "摄入接口指南", endpointField: "接口地址", + feedPlaceholder: "https://your-service/utopia-feed", endpointCopied: "接口地址已复制", copyEndpoint: "点击复制完整地址", pushStatus: {