From c7b235bb989f38a0c22c9e51173ec58063e38451 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 14 Nov 2025 10:35:55 +0800 Subject: [PATCH] fix(i18n): add missing Gemini MCP panel title and fix ternary logic - Add mcp.geminiTitle to both zh.json and en.json - Fix McpPanel title logic to handle all three apps (claude/codex/gemini) - Previous logic would incorrectly display codexTitle for gemini --- src/components/mcp/McpPanel.tsx | 6 +++++- src/i18n/locales/en.json | 1 + src/i18n/locales/zh.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/mcp/McpPanel.tsx b/src/components/mcp/McpPanel.tsx index 3c6d508..f5f8d58 100644 --- a/src/components/mcp/McpPanel.tsx +++ b/src/components/mcp/McpPanel.tsx @@ -117,7 +117,11 @@ const McpPanel: React.FC = ({ open, onOpenChange, appId }) => { ); const panelTitle = - appId === "claude" ? t("mcp.claudeTitle") : t("mcp.codexTitle"); + appId === "claude" + ? t("mcp.claudeTitle") + : appId === "codex" + ? t("mcp.codexTitle") + : t("mcp.geminiTitle"); return ( <> diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 6e8d3bf..de3c893 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -440,6 +440,7 @@ "title": "MCP Management", "claudeTitle": "Claude Code MCP Management", "codexTitle": "Codex MCP Management", + "geminiTitle": "Gemini MCP Management", "userLevelPath": "User-level MCP path", "serverList": "Servers", "loading": "Loading...", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 8311da5..e7279a8 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -440,6 +440,7 @@ "title": "MCP 管理", "claudeTitle": "Claude Code MCP 管理", "codexTitle": "Codex MCP 管理", + "geminiTitle": "Gemini MCP 管理", "userLevelPath": "用户级 MCP 配置路径", "serverList": "服务器列表", "loading": "加载中...",