From e85cc746b1289a71be6dc025334cf6304b102c67 Mon Sep 17 00:00:00 2001 From: YuanNiancai Date: Thu, 22 Jan 2026 15:24:27 +0800 Subject: [PATCH] fix: add missing translation --- src/components/Shell.jsx | 2 +- src/i18n/locales/en/chat.json | 3 ++- src/i18n/locales/zh-CN/chat.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Shell.jsx b/src/components/Shell.jsx index 5cee346..a549ba9 100644 --- a/src/components/Shell.jsx +++ b/src/components/Shell.jsx @@ -483,7 +483,7 @@ function Shell({ selectedProject, selectedSession, initialCommand, isPlainShell

{isPlainShell ? - t('shell.runCommand', { command: initialCommand || 'command', projectName: selectedProject.displayName }) : + t('shell.runCommand', { command: initialCommand || t('shell.defaultCommand'), projectName: selectedProject.displayName }) : t('shell.startCli', { projectName: selectedProject.displayName }) }

diff --git a/src/i18n/locales/en/chat.json b/src/i18n/locales/en/chat.json index 6cada03..663c139 100644 --- a/src/i18n/locales/en/chat.json +++ b/src/i18n/locales/en/chat.json @@ -199,6 +199,7 @@ "startSession": "Start a new Claude session", "resumeSession": "Resume session: {{displayName}}...", "runCommand": "Run {{command}} in {{projectName}}", - "startCli": "Starting Claude CLI in {{projectName}}" + "startCli": "Starting Claude CLI in {{projectName}}", + "defaultCommand": "command" } } diff --git a/src/i18n/locales/zh-CN/chat.json b/src/i18n/locales/zh-CN/chat.json index a6d9cd0..2d52ba4 100644 --- a/src/i18n/locales/zh-CN/chat.json +++ b/src/i18n/locales/zh-CN/chat.json @@ -199,6 +199,7 @@ "startSession": "启动新的 Claude 会话", "resumeSession": "恢复会话:{{displayName}}...", "runCommand": "在 {{projectName}} 中运行 {{command}}", - "startCli": "在 {{projectName}} 中启动 Claude CLI" + "startCli": "在 {{projectName}} 中启动 Claude CLI", + "defaultCommand": "命令" } }