From 7189c3189b36f649611430bdd0bfdfeaef556e80 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 1 Jun 2026 19:37:53 +0800 Subject: [PATCH] fix(web): add missing market.componentName i18n keys The marketplace component filter (and component badges) used market.componentName.{Tool,Command,EventListener,KnowledgeEngine,Parser,Page} but those keys only existed under plugins.componentName, so the market UI showed raw keys. Add a componentName block to the market namespace (zh-Hans + en-US; other locales fall back to zh-Hans). Co-Authored-By: Claude Opus 4.8 (1M context) --- web/src/i18n/locales/en-US.ts | 8 ++++++++ web/src/i18n/locales/zh-Hans.ts | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts index 593e3b24..0dcd0edd 100644 --- a/web/src/i18n/locales/en-US.ts +++ b/web/src/i18n/locales/en-US.ts @@ -672,6 +672,14 @@ const enUS = { markAsReadFailed: 'Mark as read failed', filterByComponent: 'Component', allComponents: 'All Components', + componentName: { + Tool: 'Tool', + EventListener: 'Event Listener', + Command: 'Command', + KnowledgeEngine: 'Knowledge Engine', + Parser: 'Parser', + Page: 'Page', + }, filterByType: 'Type', allTypes: 'All Types', typePlugin: 'Plugin', diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts index 73fc9138..7107c607 100644 --- a/web/src/i18n/locales/zh-Hans.ts +++ b/web/src/i18n/locales/zh-Hans.ts @@ -645,6 +645,14 @@ const zhHans = { markAsReadFailed: '标记为已读失败', filterByComponent: '组件', allComponents: '全部组件', + componentName: { + Tool: '工具', + EventListener: '事件监听器', + Command: '命令', + KnowledgeEngine: '知识引擎', + Parser: '解析器', + Page: '页面', + }, filterByType: '类型', allTypes: '全部类型', typePlugin: '插件',