mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-19 13:33:35 +08:00
fix: translate prompt placeholder in new task modal
This commit is contained in:
parent
5a8fb8ad4e
commit
b5d970dc8d
@ -131,7 +131,7 @@ export function NewTaskModal({ open, onClose }: Props) {
|
|||||||
<PromptEditor
|
<PromptEditor
|
||||||
value={prompt}
|
value={prompt}
|
||||||
onChange={setPrompt}
|
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}
|
permissionMode={permissionMode}
|
||||||
onPermissionModeChange={setPermissionMode}
|
onPermissionModeChange={setPermissionMode}
|
||||||
modelId={model}
|
modelId={model}
|
||||||
|
|||||||
@ -214,6 +214,7 @@ export const en = {
|
|||||||
'newTask.monthly': 'Monthly',
|
'newTask.monthly': 'Monthly',
|
||||||
'newTask.delayNote': 'Scheduled tasks use a randomized delay of several minutes for server performance.',
|
'newTask.delayNote': 'Scheduled tasks use a randomized delay of several minutes for server performance.',
|
||||||
'newTask.create': 'Create task',
|
'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 ──────────────────────────────────────
|
// ─── Prompt Editor ──────────────────────────────────────
|
||||||
'promptEditor.worktree': 'worktree',
|
'promptEditor.worktree': 'worktree',
|
||||||
|
|||||||
@ -216,6 +216,7 @@ export const zh: Record<TranslationKey, string> = {
|
|||||||
'newTask.monthly': '每月',
|
'newTask.monthly': '每月',
|
||||||
'newTask.delayNote': '定时任务会使用随机延迟以优化服务器性能。',
|
'newTask.delayNote': '定时任务会使用随机延迟以优化服务器性能。',
|
||||||
'newTask.create': '创建任务',
|
'newTask.create': '创建任务',
|
||||||
|
'newTask.promptPlaceholder': '查看过去 24 小时的提交。总结变更内容,标记有风险的模式或缺失的测试,并记录值得跟进的事项。',
|
||||||
|
|
||||||
// ─── Prompt Editor ──────────────────────────────────────
|
// ─── Prompt Editor ──────────────────────────────────────
|
||||||
'promptEditor.worktree': '工作树',
|
'promptEditor.worktree': '工作树',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user