fix: translate prompt placeholder in new task modal

This commit is contained in:
程序员阿江(Relakkes) 2026-04-07 22:26:48 +08:00
parent 5a8fb8ad4e
commit b5d970dc8d
3 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,7 @@ export function NewTaskModal({ open, onClose }: Props) {
<PromptEditor
value={prompt}
onChange={setPrompt}
placeholder="Look at the commits from the last 24 hours. Summarize what changed, call out any risky patterns or missing tests, and note anything worth following up on."
placeholder={t('newTask.promptPlaceholder')}
permissionMode={permissionMode}
onPermissionModeChange={setPermissionMode}
modelId={model}

View File

@ -214,6 +214,7 @@ export const en = {
'newTask.monthly': 'Monthly',
'newTask.delayNote': 'Scheduled tasks use a randomized delay of several minutes for server performance.',
'newTask.create': 'Create task',
'newTask.promptPlaceholder': 'Look at the commits from the last 24 hours. Summarize what changed, call out any risky patterns or missing tests, and note anything worth following up on.',
// ─── Prompt Editor ──────────────────────────────────────
'promptEditor.worktree': 'worktree',

View File

@ -216,6 +216,7 @@ export const zh: Record<TranslationKey, string> = {
'newTask.monthly': '每月',
'newTask.delayNote': '定时任务会使用随机延迟以优化服务器性能。',
'newTask.create': '创建任务',
'newTask.promptPlaceholder': '查看过去 24 小时的提交。总结变更内容,标记有风险的模式或缺失的测试,并记录值得跟进的事项。',
// ─── Prompt Editor ──────────────────────────────────────
'promptEditor.worktree': '工作树',