Skip to content

Commit cd35f75

Browse files
committed
More translations
1 parent eb8abca commit cd35f75

File tree

19 files changed

+76
-4
lines changed

19 files changed

+76
-4
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ export const webviewMessageHandler = async (
24412441
// Project commands
24422442
const workspaceRoot = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath
24432443
if (!workspaceRoot) {
2444-
vscode.window.showErrorMessage("No workspace folder found for project command")
2444+
vscode.window.showErrorMessage(t("common:errors.no_workspace_for_project_command"))
24452445
break
24462446
}
24472447
commandsDir = path.join(workspaceRoot, ".roo", "commands")
@@ -2504,12 +2504,12 @@ export const webviewMessageHandler = async (
25042504
.then(() => true)
25052505
.catch(() => false)
25062506
) {
2507-
vscode.window.showErrorMessage(`Command "${commandName}" already exists`)
2507+
vscode.window.showErrorMessage(t("common:errors.command_already_exists", { commandName }))
25082508
break
25092509
}
25102510

25112511
// Create the command file with template content
2512-
const templateContent = "This is a new slash command. Edit this file to customize the command behavior."
2512+
const templateContent = t("common:errors.command_template_content")
25132513

25142514
await fs.writeFile(filePath, templateContent, "utf8")
25152515
provider.log(`Created new command file: ${filePath}`)
@@ -2531,7 +2531,7 @@ export const webviewMessageHandler = async (
25312531
})
25322532
} catch (error) {
25332533
provider.log(`Error creating command: ${JSON.stringify(error, Object.getOwnPropertyNames(error), 2)}`)
2534-
vscode.window.showErrorMessage("Failed to create command")
2534+
vscode.window.showErrorMessage(t("common:errors.create_command_failed"))
25352535
}
25362536
break
25372537
}

src/i18n/locales/ca/common.json

Lines changed: 4 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: 4 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"command_not_found": "Command '{{name}}' not found",
7575
"open_command_file": "Failed to open command file",
7676
"delete_command": "Failed to delete command",
77+
"no_workspace_for_project_command": "No workspace folder found for project command",
78+
"command_already_exists": "Command \"{{commandName}}\" already exists",
79+
"create_command_failed": "Failed to create command",
80+
"command_template_content": "This is a new slash command. Edit this file to customize the command behavior.",
7781
"claudeCode": {
7882
"processExited": "Claude Code process exited with code {{exitCode}}.",
7983
"errorOutput": "Error output: {{output}}",

src/i18n/locales/es/common.json

Lines changed: 4 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: 4 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: 4 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: 4 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: 4 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: 4 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)