fix(i18n): unify keys at tools root; use t('tools:noChanges'|'tools:changesRejected') in tools

This commit is contained in:
Hannes Rudolph 2025-09-03 18:14:12 -06:00
parent 87b777a943
commit 9b0cdcdffc
2 changed files with 2 additions and 4 deletions

View file

@ -131,7 +131,7 @@ export async function insertContentTool(
// For existing files, generate diff and check for changes
diff = formatResponse.createPrettyPatch(relPath, fileContent, updatedContent)
if (!diff) {
pushToolResult(t("tools:generic.noChanges", { path: relPath }))
pushToolResult(t("tools:noChanges", { path: relPath }))
return
}
approvalContent = undefined
@ -165,7 +165,7 @@ export async function insertContentTool(
if (!isPreventFocusDisruptionEnabled) {
await cline.diffViewProvider.revertChanges()
}
pushToolResult(t("tools:generic.changesRejected"))
pushToolResult(t("tools:changesRejected"))
await cline.diffViewProvider.reset()
return
}

View file

@ -28,8 +28,6 @@
"noChanges": "No changes needed for '{{path}}'.",
"changesRejected": "Changes were rejected by the user."
},
"noChanges": "No changes needed for '{{path}}'.",
"changesRejected": "Changes were rejected by the user.",
"errors": {
"toolCallError": "Tool call error: {{toolName}}",
"toolExecutionError": "Tool execution error",