Skip to content

Commit 9b0cdcd

Browse files
committed
fix(i18n): unify keys at tools root; use t('tools:noChanges'|'tools:changesRejected') in tools
1 parent 87b777a commit 9b0cdcd

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
@@ -165,7 +165,7 @@ export async function insertContentTool(
165165
if (!isPreventFocusDisruptionEnabled) {
166166
await cline.diffViewProvider.revertChanges()
167167
}
168-
pushToolResult(t("tools:generic.changesRejected"))
168+
pushToolResult(t("tools:changesRejected"))
169169
await cline.diffViewProvider.reset()
170170
return
171171
}

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)