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) <noreply@anthropic.com>
This commit is contained in:
Junyan Qin
2026-06-01 19:37:53 +08:00
parent 2695d9dace
commit 7189c3189b
2 changed files with 16 additions and 0 deletions

View File

@@ -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',

View File

@@ -645,6 +645,14 @@ const zhHans = {
markAsReadFailed: '标记为已读失败',
filterByComponent: '组件',
allComponents: '全部组件',
componentName: {
Tool: '工具',
EventListener: '事件监听器',
Command: '命令',
KnowledgeEngine: '知识引擎',
Parser: '解析器',
Page: '页面',
},
filterByType: '类型',
allTypes: '全部类型',
typePlugin: '插件',