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
This commit is contained in:
@@ -117,7 +117,11 @@ const McpPanel: React.FC<McpPanelProps> = ({ 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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user