Skip to content

Commit 3dec327

Browse files
committed
More i18n
1 parent c139dd3 commit 3dec327

File tree

14 files changed

+55
-2
lines changed

14 files changed

+55
-2
lines changed

src/activate/handleTask.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as vscode from "vscode"
22
import { COMMAND_IDS } from "../core/CodeActionProvider"
33
import { ClineProvider } from "../core/webview/ClineProvider"
4+
import { t } from "../i18n"
45

56
export const handleNewTask = async (params: { prompt?: string } | null | undefined) => {
67
let prompt = params?.prompt
78
if (!prompt) {
89
prompt = await vscode.window.showInputBox({
9-
prompt: "What should Roo do?",
10-
placeHolder: "Type your task here",
10+
prompt: t("input.task_prompt"),
11+
placeHolder: t("input.task_placeholder"),
1112
})
1213
}
1314
if (!prompt) {

src/i18n/locales/de/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Bitte gib einen absoluten Pfad ein (z.B. D:\\RooCodeStorage oder /home/user/storage)",
8585
"enter_valid_path": "Bitte gib einen gültigen Pfad ein"
86+
},
87+
"input": {
88+
"task_prompt": "Was soll Roo tun?",
89+
"task_placeholder": "Gib deine Aufgabe hier ein"
8690
}
8791
}

src/i18n/locales/en/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Please enter an absolute path (e.g. D:\\RooCodeStorage or /home/user/storage)",
8585
"enter_valid_path": "Please enter a valid path"
86+
},
87+
"input": {
88+
"task_prompt": "What should Roo do?",
89+
"task_placeholder": "Type your task here"
8690
}
8791
}

src/i18n/locales/es/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Por favor, ingresa una ruta absoluta (por ejemplo, D:\\RooCodeStorage o /home/user/storage)",
8585
"enter_valid_path": "Por favor, ingresa una ruta válida"
86+
},
87+
"input": {
88+
"task_prompt": "¿Qué debe hacer Roo?",
89+
"task_placeholder": "Escribe tu tarea aquí"
8690
}
8791
}

src/i18n/locales/fr/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Veuillez entrer un chemin absolu (ex. D:\\RooCodeStorage ou /home/user/storage)",
8585
"enter_valid_path": "Veuillez entrer un chemin valide"
86+
},
87+
"input": {
88+
"task_prompt": "Que doit faire Roo ?",
89+
"task_placeholder": "Écris ta tâche ici"
8690
}
8791
}

src/i18n/locales/hi/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "कृपया एक पूर्ण पाथ दर्ज करें (उदाहरण: D:\\RooCodeStorage या /home/user/storage)",
8585
"enter_valid_path": "कृपया एक वैध पाथ दर्ज करें"
86+
},
87+
"input": {
88+
"task_prompt": "Roo को क्या करना है?",
89+
"task_placeholder": "अपना कार्य यहाँ लिखें"
8690
}
8791
}

src/i18n/locales/it/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Inserisci un percorso assoluto (ad esempio D:\\RooCodeStorage o /home/user/storage)",
8585
"enter_valid_path": "Inserisci un percorso valido"
86+
},
87+
"input": {
88+
"task_prompt": "Cosa deve fare Roo?",
89+
"task_placeholder": "Scrivi il tuo compito qui"
8690
}
8791
}

src/i18n/locales/ja/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "絶対パスを入力してください(例:D:\\RooCodeStorage または /home/user/storage)",
8585
"enter_valid_path": "有効なパスを入力してください"
86+
},
87+
"input": {
88+
"task_prompt": "Rooにどんなことをさせますか?",
89+
"task_placeholder": "タスクをここに入力してください"
8690
}
8791
}

src/i18n/locales/ko/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "절대 경로를 입력하세요 (예: D:\\RooCodeStorage 또는 /home/user/storage)",
8585
"enter_valid_path": "유효한 경로를 입력하세요"
86+
},
87+
"input": {
88+
"task_prompt": "Roo에게 무엇을 시킬까요?",
89+
"task_placeholder": "여기에 작업을 입력하세요"
8690
}
8791
}

src/i18n/locales/pl/common.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,9 @@
8383
"path_placeholder": "D:\\RooCodeStorage",
8484
"enter_absolute_path": "Wprowadź pełną ścieżkę (np. D:\\RooCodeStorage lub /home/user/storage)",
8585
"enter_valid_path": "Wprowadź prawidłową ścieżkę"
86+
},
87+
"input": {
88+
"task_prompt": "Co ma zrobić Roo?",
89+
"task_placeholder": "Wpisz swoje zadanie tutaj"
8690
}
8791
}

0 commit comments

Comments
 (0)