Skip to content

Commit e89441e

Browse files
committed
Internationalize
1 parent 9087566 commit e89441e

File tree

17 files changed

+61
-38
lines changed

17 files changed

+61
-38
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
},
143143
{
144144
"command": "roo-cline.newTask",
145-
"title": "Roo Code: New Task",
145+
"title": "New Task",
146146
"category": "Roo Code"
147147
},
148148
{

src/shared/support-prompt.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,16 @@ export const createPrompt = (template: string, params: PromptParams): string =>
2525
}
2626

2727
interface SupportPromptConfig {
28-
label: string
29-
description: string
3028
template: string
3129
}
3230

3331
const supportPromptConfigs: Record<string, SupportPromptConfig> = {
3432
ENHANCE: {
35-
label: "Enhance Prompt",
36-
description:
37-
"Use prompt enhancement to get tailored suggestions or improvements for your inputs. This ensures Roo understands your intent and provides the best possible responses. Available via the ✨ icon in chat.",
3833
template: `Generate an enhanced version of this prompt (reply with only the enhanced prompt - no conversation, explanations, lead-in, bullet points, placeholders, or surrounding quotes):
3934
4035
\${userInput}`,
4136
},
4237
EXPLAIN: {
43-
label: "Explain Code",
44-
description:
45-
"Get detailed explanations of code snippets, functions, or entire files. Useful for understanding complex code or learning new patterns. Available in code actions (lightbulb icon in the editor) and the editor context menu (right-click on selected code).",
4638
template: `Explain the following code from file path @/\${filePath}:
4739
\${userInput}
4840
@@ -56,9 +48,6 @@ Please provide a clear and concise explanation of what this code does, including
5648
3. Important patterns or techniques used`,
5749
},
5850
FIX: {
59-
label: "Fix Issues",
60-
description:
61-
"Get help identifying and resolving bugs, errors, or code quality issues. Provides step-by-step guidance for fixing problems. Available in code actions (lightbulb icon in the editor) and the editor context menu (right-click on selected code).",
6251
template: `Fix any issues in the following code from file path @/\${filePath}
6352
\${diagnosticText}
6453
\${userInput}
@@ -74,9 +63,6 @@ Please:
7463
4. Explain what was fixed and why`,
7564
},
7665
IMPROVE: {
77-
label: "Improve Code",
78-
description:
79-
"Receive suggestions for code optimization, better practices, and architectural improvements while maintaining functionality. Available in code actions (lightbulb icon in the editor) and the editor context menu (right-click on selected code).",
8066
template: `Improve the following code from file path @/\${filePath}:
8167
\${userInput}
8268
@@ -93,28 +79,19 @@ Please suggest improvements for:
9379
Provide the improved code along with explanations for each enhancement.`,
9480
},
9581
ADD_TO_CONTEXT: {
96-
label: "Add to Context",
97-
description:
98-
"Add context to your current task or conversation. Useful for providing additional information or clarifications. Available in code actions (lightbulb icon in the editor). and the editor context menu (right-click on selected code).",
9982
template: `\${filePath}:
10083
\`\`\`
10184
\${selectedText}
10285
\`\`\``,
10386
},
10487
TERMINAL_ADD_TO_CONTEXT: {
105-
label: "Add Terminal Content to Context",
106-
description:
107-
"Add terminal output to your current task or conversation. Useful for providing command outputs or logs. Available in the terminal context menu (right-click on selected terminal content).",
10888
template: `\${userInput}
10989
Terminal output:
11090
\`\`\`
11191
\${terminalContent}
11292
\`\`\``,
11393
},
11494
TERMINAL_FIX: {
115-
label: "Fix Terminal Command",
116-
description:
117-
"Get help fixing terminal commands that failed or need improvement. Available in the terminal context menu (right-click on selected terminal content).",
11895
template: `\${userInput}
11996
Fix this terminal command:
12097
\`\`\`
@@ -127,9 +104,6 @@ Please:
127104
3. Explain what was fixed and why`,
128105
},
129106
TERMINAL_EXPLAIN: {
130-
label: "Explain Terminal Command",
131-
description:
132-
"Get detailed explanations of terminal commands and their outputs. Available in the terminal context menu (right-click on selected terminal content).",
133107
template: `\${userInput}
134108
Explain this terminal command:
135109
\`\`\`
@@ -142,8 +116,6 @@ Please provide:
142116
3. Expected output and behavior`,
143117
},
144118
NEW_TASK: {
145-
label: "Start New Task",
146-
description: "Start new task with user input",
147119
template: `\${userInput}`,
148120
},
149121
} as const
@@ -163,15 +135,6 @@ export const supportPrompt = {
163135

164136
export type { SupportPromptType }
165137

166-
// Expose labels and descriptions for UI
167-
export const supportPromptLabels = Object.fromEntries(
168-
Object.entries(supportPromptConfigs).map(([key, config]) => [key, config.label]),
169-
) as Record<SupportPromptType, string>
170-
171-
export const supportPromptDescriptions = Object.fromEntries(
172-
Object.entries(supportPromptConfigs).map(([key, config]) => [key, config.description]),
173-
) as Record<SupportPromptType, string>
174-
175138
export type CustomSupportPrompts = {
176139
[key: string]: string | undefined
177140
}

webview-ui/src/i18n/locales/ca/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Explicar comanda del terminal",
9393
"description": "Obtingueu explicacions detallades de les comandes del terminal i les seves sortides. Disponible al menú contextual del terminal (clic dret al contingut seleccionat del terminal)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Iniciar nova tasca",
97+
"description": "Inicieu una nova tasca amb l'entrada proporcionada. Disponible a la paleta de comandes."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/de/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Terminal-Befehl erklären",
9393
"description": "Erhalten Sie detaillierte Erklärungen zu Terminal-Befehlen und deren Ausgaben. Verfügbar im Kontextmenü des Terminals (Rechtsklick auf ausgewählten Terminal-Inhalt)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Neue Aufgabe starten",
97+
"description": "Starte eine neue Aufgabe mit deiner Eingabe. Verfügbar in der Befehlspalette."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/en/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Explain Terminal Command",
9393
"description": "Get detailed explanations of terminal commands and their outputs. Available in the terminal context menu (right-click on selected terminal content)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Start New Task",
97+
"description": "Start a new task with user input. Available in the Command Palette."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/es/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Explicar comando de terminal",
9393
"description": "Obtén explicaciones detalladas de comandos de terminal y sus salidas. Disponible en el menú contextual de la terminal (clic derecho en el contenido seleccionado de la terminal)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Iniciar nueva tarea",
97+
"description": "Inicia una nueva tarea con entrada del usuario. Disponible en la Paleta de comandos."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/fr/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Expliquer la commande du terminal",
9393
"description": "Obtenez des explications détaillées sur les commandes du terminal et leurs sorties. Disponible dans le menu contextuel du terminal (clic droit sur le contenu sélectionné du terminal)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Démarrer une nouvelle tâche",
97+
"description": "Démarre une nouvelle tâche avec ton entrée. Disponible dans la palette de commandes."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/hi/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "टर्मिनल कमांड समझाएँ",
9393
"description": "टर्मिनल कमांड और उनके आउटपुट के विस्तृत स्पष्टीकरण प्राप्त करें। टर्मिनल के कंटेक्स्ट मेनू (चयनित टर्मिनल सामग्री पर राइट-क्लिक) में उपलब्ध है।"
94+
},
95+
"NEW_TASK": {
96+
"label": "नया कार्य शुरू करें",
97+
"description": "इनपुट के साथ नया कार्य शुरू करें। कमांड पैलेट में उपलब्ध है।"
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/it/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "Spiega comando del terminale",
9393
"description": "Ottieni spiegazioni dettagliate sui comandi del terminale e sui loro output. Disponibile nel menu contestuale del terminale (clic destro sul contenuto selezionato del terminale)."
94+
},
95+
"NEW_TASK": {
96+
"label": "Avvia nuova attività",
97+
"description": "Avvia una nuova attività con il tuo input. Disponibile nella palette dei comandi."
9498
}
9599
}
96100
},

webview-ui/src/i18n/locales/ja/prompts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"TERMINAL_EXPLAIN": {
9292
"label": "ターミナルコマンドを説明",
9393
"description": "ターミナルコマンドとその出力の詳細な説明を得ることができます。ターミナルのコンテキストメニュー(選択したターミナルの内容で右クリック)から利用できます。"
94+
},
95+
"NEW_TASK": {
96+
"label": "新しいタスクを開始",
97+
"description": "入力内容で新しいタスクを開始できます。コマンドパレットから利用できます。"
9498
}
9599
}
96100
},

0 commit comments

Comments
 (0)