Skip to content

Commit 05c5334

Browse files
committed
fix(i18n): unify keys at tools root; use t('tools:noChanges'|'tools:changesRejected') in tools
1 parent 14d7e21 commit 05c5334

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/core/tools/insertContentTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function insertContentTool(
131131
// For existing files, generate diff and check for changes
132132
diff = formatResponse.createPrettyPatch(relPath, fileContent, updatedContent)
133133
if (!diff) {
134-
pushToolResult(t("tools:generic.noChanges", { path: relPath }))
134+
pushToolResult(t("tools:noChanges", { path: relPath }))
135135
return
136136
}
137137
approvalContent = undefined
@@ -167,7 +167,7 @@ export async function insertContentTool(
167167
if (!isPreventFocusDisruptionEnabled) {
168168
await cline.diffViewProvider.revertChanges()
169169
}
170-
pushToolResult(t("tools:generic.changesRejected"))
170+
pushToolResult(t("tools:changesRejected"))
171171
await cline.diffViewProvider.reset()
172172
return
173173
}

src/i18n/locales/en/tools.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
"noChanges": "No changes needed for '{{path}}'.",
2929
"changesRejected": "Changes were rejected by the user."
3030
},
31-
"noChanges": "No changes needed for '{{path}}'.",
32-
"changesRejected": "Changes were rejected by the user.",
3331
"errors": {
3432
"toolCallError": "Tool call error: {{toolName}}",
3533
"toolExecutionError": "Tool execution error",

0 commit comments

Comments
 (0)