From 022d606725dcc593496a7abc7a9a4f5c83ae0d70 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Fri, 19 Dec 2025 13:43:15 +0000 Subject: [PATCH] fix: add missing translation keys for edit subtask instructions - Add editInstructions and editPlaceholder keys to chat.json subtasks section - Add error_editing_subtask key to common.json errors.message section - Fix translation key references in ChatRow.tsx to use correct paths - Rebased on main to pick up latest changes --- src/i18n/locales/en/common.json | 3 ++- webview-ui/src/components/chat/ChatRow.tsx | 8 ++++---- webview-ui/src/i18n/locales/en/chat.json | 4 +++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.json index 2d78327511..f64bbbfe0c 100644 --- a/src/i18n/locales/en/common.json +++ b/src/i18n/locales/en/common.json @@ -100,7 +100,8 @@ "cannot_delete_invalid_timestamp": "Cannot delete message: invalid timestamp", "message_not_found": "Message with timestamp {{messageTs}} not found", "error_deleting_message": "Error deleting message: {{error}}", - "error_editing_message": "Error editing message: {{error}}" + "error_editing_message": "Error editing message: {{error}}", + "error_editing_subtask": "Error editing subtask: {{error}}" }, "gemini": { "generate_stream": "Gemini generate context stream error: {{error}}", diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 44f1f05cc5..a9b03d4b2d 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -867,7 +867,7 @@ export const ChatRowContent = ({ e.stopPropagation() handleEditSubtaskClick() }} - title={t("chat:editSubtaskInstructions")} + title={t("chat:subtasks.editInstructions")} style={{ padding: "2px 4px", borderRadius: "3px", @@ -892,19 +892,19 @@ export const ChatRowContent = ({ fontFamily: "var(--vscode-editor-font-family)", fontSize: "var(--vscode-editor-font-size)", }} - placeholder={t("chat:editSubtaskInstructions.placeholder")} + placeholder={t("chat:subtasks.editPlaceholder")} autoFocus />
diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index 5c8feb122b..8864d3c9aa 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -278,7 +278,9 @@ "completionContent": "Subtask Completed", "resultContent": "Subtask Results", "defaultResult": "Please continue to the next task.", - "completionInstructions": "Subtask completed! You can review the results and suggest any corrections or next steps. If everything looks good, confirm to return the result to the parent task." + "completionInstructions": "Subtask completed! You can review the results and suggest any corrections or next steps. If everything looks good, confirm to return the result to the parent task.", + "editInstructions": "Edit subtask instructions", + "editPlaceholder": "Edit subtask instructions..." }, "questions": { "hasQuestion": "Roo has a question"