Skip to content

Commit 314feb0

Browse files
committed
fix: internationalize toggleAutoApprove notification message
- Replace hardcoded English status text with translated versions - Add status.enabled and status.disabled translations to all 18 language files - Update notification to use t() function for proper i18n support - Ensures Auto-Approve status displays in user's selected language Addresses PR #8073 review feedback
1 parent 4404333 commit 314feb0

File tree

19 files changed

+130
-2
lines changed

19 files changed

+130
-2
lines changed

src/activate/registerCommands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,10 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
239239
await visibleProvider.postStateToWebview()
240240

241241
// Show notification to user
242-
const statusText = newState ? "enabled" : "disabled"
243-
vscode.window.showInformationMessage(`Auto-Approve ${statusText}`)
242+
const statusText = newState ? t("common:status.enabled") : t("common:status.disabled")
243+
vscode.window.showInformationMessage(
244+
t("common:commands.toggleAutoApprove.notification", { status: statusText }),
245+
)
244246
},
245247
})
246248

src/i18n/locales/ca/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/de/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/en/common.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,15 @@
214214
"commands": {
215215
"preventCompletionWithOpenTodos": {
216216
"description": "Prevent task completion when there are incomplete todos in the todo list"
217+
},
218+
"toggleAutoApprove": {
219+
"notification": "Auto-Approve {{status}}"
217220
}
218221
},
222+
"status": {
223+
"enabled": "enabled",
224+
"disabled": "disabled"
225+
},
219226
"docsLink": {
220227
"label": "Docs",
221228
"url": "https://docs.roocode.com"

src/i18n/locales/es/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/fr/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/hi/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/id/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/it/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/ja/common.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)