Skip to content

Commit 41d356c

Browse files
committed
Add localization support for Roo Code extension in multiple languages
- Created new localization files for Catalan, German, Spanish, French, Hindi, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Turkish, Vietnamese, Chinese (Simplified), and Chinese (Traditional). - Updated extension activation and deactivation messages to use localized strings. - Enhanced user experience by providing translated command titles and descriptions for various functionalities within the extension.
1 parent 2eba534 commit 41d356c

18 files changed

+1057
-155
lines changed

package-lock.json

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

package.json

Lines changed: 47 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "roo-cline",
3-
"displayName": "Roo Code",
4-
"description": "A whole dev team of AI agents in your editor. Previously Roo Cline.",
3+
"displayName": "%extension.displayName%",
4+
"description": "%extension.description%",
55
"publisher": "RooVeterinaryInc",
66
"version": "3.11.13",
77
"icon": "assets/icons/icon.png",
@@ -54,18 +54,18 @@
5454
"submenus": [
5555
{
5656
"id": "roo-code.contextMenu",
57-
"label": "Roo Code"
57+
"label": "%views.contextMenu.label%"
5858
},
5959
{
6060
"id": "roo-code.terminalMenu",
61-
"label": "Roo Code"
61+
"label": "%views.terminalMenu.label%"
6262
}
6363
],
6464
"viewsContainers": {
6565
"activitybar": [
6666
{
6767
"id": "roo-cline-ActivityBar",
68-
"title": "Roo Code",
68+
"title": "%views.activitybar.title%",
6969
"icon": "assets/icons/icon.svg"
7070
}
7171
]
@@ -82,103 +82,103 @@
8282
"commands": [
8383
{
8484
"command": "roo-cline.plusButtonClicked",
85-
"title": "New Task",
85+
"title": "%command.newTask.title%",
8686
"icon": "$(add)"
8787
},
8888
{
8989
"command": "roo-cline.mcpButtonClicked",
90-
"title": "MCP Servers",
90+
"title": "%command.mcpServers.title%",
9191
"icon": "$(server)"
9292
},
9393
{
9494
"command": "roo-cline.promptsButtonClicked",
95-
"title": "Prompts",
95+
"title": "%command.prompts.title%",
9696
"icon": "$(notebook)"
9797
},
9898
{
9999
"command": "roo-cline.historyButtonClicked",
100-
"title": "History",
100+
"title": "%command.history.title%",
101101
"icon": "$(history)"
102102
},
103103
{
104104
"command": "roo-cline.popoutButtonClicked",
105-
"title": "Open in Editor",
105+
"title": "%command.openInEditor.title%",
106106
"icon": "$(link-external)"
107107
},
108108
{
109109
"command": "roo-cline.settingsButtonClicked",
110-
"title": "Settings",
110+
"title": "%command.settings.title%",
111111
"icon": "$(settings-gear)"
112112
},
113113
{
114114
"command": "roo-cline.helpButtonClicked",
115-
"title": "Documentation",
115+
"title": "%command.documentation.title%",
116116
"icon": "$(question)"
117117
},
118118
{
119119
"command": "roo-cline.openInNewTab",
120-
"title": "Open In New Tab",
121-
"category": "Roo Code"
120+
"title": "%command.openInNewTab.title%",
121+
"category": "%extension.displayName%"
122122
},
123123
{
124124
"command": "roo-cline.explainCode",
125-
"title": "Explain Code",
126-
"category": "Roo Code"
125+
"title": "%command.explainCode.title%",
126+
"category": "%extension.displayName%"
127127
},
128128
{
129129
"command": "roo-cline.fixCode",
130-
"title": "Fix Code",
131-
"category": "Roo Code"
130+
"title": "%command.fixCode.title%",
131+
"category": "%extension.displayName%"
132132
},
133133
{
134134
"command": "roo-cline.improveCode",
135-
"title": "Improve Code",
136-
"category": "Roo Code"
135+
"title": "%command.improveCode.title%",
136+
"category": "%extension.displayName%"
137137
},
138138
{
139139
"command": "roo-cline.addToContext",
140-
"title": "Add To Context",
141-
"category": "Roo Code"
140+
"title": "%command.addToContext.title%",
141+
"category": "%extension.displayName%"
142142
},
143143
{
144144
"command": "roo-cline.newTask",
145-
"title": "New Task",
146-
"category": "Roo Code"
145+
"title": "%command.newTask.title%",
146+
"category": "%extension.displayName%"
147147
},
148148
{
149149
"command": "roo-cline.terminalAddToContext",
150-
"title": "Add Terminal Content to Context",
150+
"title": "%command.terminal.addToContext.title%",
151151
"category": "Terminal"
152152
},
153153
{
154154
"command": "roo-cline.terminalFixCommand",
155-
"title": "Fix This Command",
155+
"title": "%command.terminal.fixCommand.title%",
156156
"category": "Terminal"
157157
},
158158
{
159159
"command": "roo-cline.terminalExplainCommand",
160-
"title": "Explain This Command",
160+
"title": "%command.terminal.explainCommand.title%",
161161
"category": "Terminal"
162162
},
163163
{
164164
"command": "roo-cline.terminalFixCommandInCurrentTask",
165-
"title": "Fix This Command (Current Task)",
165+
"title": "%command.terminal.fixCommandInCurrentTask.title%",
166166
"category": "Terminal"
167167
},
168168
{
169169
"command": "roo-cline.terminalExplainCommandInCurrentTask",
170-
"title": "Explain This Command (Current Task)",
170+
"title": "%command.terminal.explainCommandInCurrentTask.title%",
171171
"category": "Terminal"
172172
},
173173
{
174174
"command": "roo-cline.setCustomStoragePath",
175-
"title": "Set Custom Storage Path",
176-
"category": "Roo Code"
175+
"title": "%command.setCustomStoragePath.title%",
176+
"category": "%extension.displayName%"
177177
},
178178
{
179179
"command": "roo-cline.focusInput",
180-
"title": "Focus Input Field",
181-
"category": "Roo Code"
180+
"title": "%command.focusInput.title%",
181+
"category": "%extension.displayName%"
182182
}
183183
],
184184
"menus": {
@@ -310,7 +310,7 @@
310310
]
311311
},
312312
"configuration": {
313-
"title": "Roo Code",
313+
"title": "%configuration.title%",
314314
"properties": {
315315
"roo-cline.allowedCommands": {
316316
"type": "array",
@@ -325,26 +325,26 @@
325325
"git diff",
326326
"git show"
327327
],
328-
"description": "Commands that can be auto-executed when 'Always approve execute operations' is enabled"
328+
"description": "%commands.allowedCommands.description%"
329329
},
330330
"roo-cline.vsCodeLmModelSelector": {
331331
"type": "object",
332332
"properties": {
333333
"vendor": {
334334
"type": "string",
335-
"description": "The vendor of the language model (e.g. copilot)"
335+
"description": "%settings.vsCodeLmModelSelector.vendor.description%"
336336
},
337337
"family": {
338338
"type": "string",
339-
"description": "The family of the language model (e.g. gpt-4)"
339+
"description": "%settings.vsCodeLmModelSelector.family.description%"
340340
}
341341
},
342-
"description": "Settings for VSCode Language Model API"
342+
"description": "%settings.vsCodeLmModelSelector.description%"
343343
},
344344
"roo-cline.customStoragePath": {
345345
"type": "string",
346346
"default": "",
347-
"description": "Custom storage path. Leave empty to use the default location. Supports absolute paths (e.g. 'D:\\RooCodeStorage')"
347+
"description": "%settings.customStoragePath.description%"
348348
}
349349
}
350350
}
@@ -376,7 +376,10 @@
376376
"publish:marketplace": "vsce publish && ovsx publish",
377377
"publish": "npm run build && changeset publish && npm install --package-lock-only",
378378
"version-packages": "changeset version && npm install --package-lock-only",
379-
"vscode:prepublish": "npm run package",
379+
"vscode:prepublish": "npm run l10n:export && npm run package",
380+
"l10n:export": "npx @vscode/l10n-dev export -o ./l10n ./src",
381+
"l10n:pseudo": "npx @vscode/l10n-dev generate-pseudo -o ./l10n/ ./l10n/bundle.l10n.json ./package.nls.json",
382+
"l10n:xlf": "npx @vscode/l10n-dev generate-xlf -o ./l10n-sample.xlf ./l10n/bundle.l10n.json ./package.nls.json",
380383
"vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin",
381384
"watch": "npm-run-all -l -p watch:*",
382385
"watch:esbuild": "node esbuild.js --watch",
@@ -409,6 +412,7 @@
409412
"@types/turndown": "^5.0.5",
410413
"@types/vscode": "^1.95.0",
411414
"@vscode/codicons": "^0.0.36",
415+
"@vscode/l10n": "^0.0.18",
412416
"axios": "^1.7.4",
413417
"cheerio": "^1.0.0",
414418
"chokidar": "^4.0.1",
@@ -461,11 +465,14 @@
461465
"@types/diff-match-patch": "^1.0.36",
462466
"@types/glob": "^8.1.0",
463467
"@types/jest": "^29.5.14",
468+
"@types/mocha": "^10.0.10",
464469
"@types/node": "20.x",
465470
"@types/node-ipc": "^9.2.3",
466471
"@types/string-similarity": "^4.0.2",
467472
"@typescript-eslint/eslint-plugin": "^7.14.1",
468473
"@typescript-eslint/parser": "^7.11.0",
474+
"@vscode/l10n-dev": "^0.0.35",
475+
"@vscode/test-electron": "^2.5.2",
469476
"@vscode/vsce": "^3.3.2",
470477
"esbuild": "^0.24.0",
471478
"eslint": "^8.57.0",

package.nls.ca.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"extension.displayName": "Roo Code",
3+
"extension.description": "Un equip complet de desenvolupament d'agents d'IA al teu editor. Anteriorment Roo Cline.",
4+
"command.newTask.title": "Nova Tasca",
5+
"command.explainCode.title": "Explicar Codi",
6+
"command.fixCode.title": "Corregir Codi",
7+
"command.improveCode.title": "Millorar Codi",
8+
"command.addToContext.title": "Afegir al Context",
9+
"command.openInNewTab.title": "Obrir en una Nova Pestanya",
10+
"command.focusInput.title": "Enfocar Camp d'Entrada",
11+
"command.setCustomStoragePath.title": "Establir Ruta d'Emmagatzematge Personalitzada",
12+
"command.terminal.addToContext.title": "Afegir Contingut del Terminal al Context",
13+
"command.terminal.fixCommand.title": "Corregir Aquesta Ordre",
14+
"command.terminal.explainCommand.title": "Explicar Aquesta Ordre",
15+
"command.terminal.fixCommandInCurrentTask.title": "Corregir Aquesta Ordre (Tasca Actual)",
16+
"command.terminal.explainCommandInCurrentTask.title": "Explicar Aquesta Ordre (Tasca Actual)",
17+
"views.activitybar.title": "Roo Code",
18+
"views.contextMenu.label": "Roo Code",
19+
"views.terminalMenu.label": "Roo Code",
20+
"command.mcpServers.title": "Servidors MCP",
21+
"command.prompts.title": "Indicacions",
22+
"command.history.title": "Historial",
23+
"command.openInEditor.title": "Obrir a l'Editor",
24+
"command.settings.title": "Configuració",
25+
"command.documentation.title": "Documentació",
26+
"configuration.title": "Roo Code",
27+
"commands.allowedCommands.description": "Ordres que es poden executar automàticament quan 'Aprova sempre les operacions d'execució' està activat",
28+
"settings.vsCodeLmModelSelector.description": "Configuració per a l'API del model de llenguatge VSCode",
29+
"settings.vsCodeLmModelSelector.vendor.description": "El proveïdor del model de llenguatge (p. ex. copilot)",
30+
"settings.vsCodeLmModelSelector.family.description": "La família del model de llenguatge (p. ex. gpt-4)",
31+
"settings.customStoragePath.description": "Ruta d'emmagatzematge personalitzada. Deixeu-la buida per utilitzar la ubicació predeterminada. Admet rutes absolutes (p. ex. 'D:\\RooCodeStorage')"
32+
}

package.nls.de.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"extension.displayName": "Roo Code",
3+
"extension.description": "Ein komplettes KI-Agenten-Entwicklungsteam in Ihrem Editor. Früher bekannt als Roo Cline.",
4+
"command.newTask.title": "Neue Aufgabe",
5+
"command.explainCode.title": "Code Erklären",
6+
"command.fixCode.title": "Code Reparieren",
7+
"command.improveCode.title": "Code Verbessern",
8+
"command.addToContext.title": "Zum Kontext Hinzufügen",
9+
"command.openInNewTab.title": "In Neuem Tab Öffnen",
10+
"command.focusInput.title": "Eingabefeld Fokussieren",
11+
"command.setCustomStoragePath.title": "Benutzerdefinierten Speicherpfad Festlegen",
12+
"command.terminal.addToContext.title": "Terminal-Inhalt zum Kontext Hinzufügen",
13+
"command.terminal.fixCommand.title": "Diesen Befehl Reparieren",
14+
"command.terminal.explainCommand.title": "Diesen Befehl Erklären",
15+
"command.terminal.fixCommandInCurrentTask.title": "Diesen Befehl Reparieren (Aktuelle Aufgabe)",
16+
"command.terminal.explainCommandInCurrentTask.title": "Diesen Befehl Erklären (Aktuelle Aufgabe)",
17+
"views.activitybar.title": "Roo Code",
18+
"views.contextMenu.label": "Roo Code",
19+
"views.terminalMenu.label": "Roo Code",
20+
"command.mcpServers.title": "MCP Server",
21+
"command.prompts.title": "Prompts",
22+
"command.history.title": "Verlauf",
23+
"command.openInEditor.title": "Im Editor Öffnen",
24+
"command.settings.title": "Einstellungen",
25+
"command.documentation.title": "Dokumentation",
26+
"configuration.title": "Roo Code",
27+
"commands.allowedCommands.description": "Befehle, die automatisch ausgeführt werden können, wenn 'Ausführungsoperationen immer genehmigen' aktiviert ist",
28+
"settings.vsCodeLmModelSelector.description": "Einstellungen für die VSCode-Sprachmodell-API",
29+
"settings.vsCodeLmModelSelector.vendor.description": "Der Anbieter des Sprachmodells (z.B. copilot)",
30+
"settings.vsCodeLmModelSelector.family.description": "Die Familie des Sprachmodells (z.B. gpt-4)",
31+
"settings.customStoragePath.description": "Benutzerdefinierter Speicherpfad. Leer lassen, um den Standardspeicherort zu verwenden. Unterstützt absolute Pfade (z.B. 'D:\\RooCodeStorage')"
32+
}

package.nls.es.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"extension.displayName": "Roo Code",
3+
"extension.description": "Un equipo completo de desarrollo de agentes de IA en tu editor. Anteriormente Roo Cline.",
4+
"command.newTask.title": "Nueva Tarea",
5+
"command.explainCode.title": "Explicar Código",
6+
"command.fixCode.title": "Corregir Código",
7+
"command.improveCode.title": "Mejorar Código",
8+
"command.addToContext.title": "Añadir al Contexto",
9+
"command.openInNewTab.title": "Abrir en Nueva Pestaña",
10+
"command.focusInput.title": "Enfocar Campo de Entrada",
11+
"command.setCustomStoragePath.title": "Establecer Ruta de Almacenamiento Personalizada",
12+
"command.terminal.addToContext.title": "Añadir Contenido de Terminal al Contexto",
13+
"command.terminal.fixCommand.title": "Corregir Este Comando",
14+
"command.terminal.explainCommand.title": "Explicar Este Comando",
15+
"command.terminal.fixCommandInCurrentTask.title": "Corregir Este Comando (Tarea Actual)",
16+
"command.terminal.explainCommandInCurrentTask.title": "Explicar Este Comando (Tarea Actual)",
17+
"views.activitybar.title": "Roo Code",
18+
"views.contextMenu.label": "Roo Code",
19+
"views.terminalMenu.label": "Roo Code",
20+
"command.mcpServers.title": "Servidores MCP",
21+
"command.prompts.title": "Indicaciones",
22+
"command.history.title": "Historial",
23+
"command.openInEditor.title": "Abrir en Editor",
24+
"command.settings.title": "Configuración",
25+
"command.documentation.title": "Documentación",
26+
"configuration.title": "Roo Code",
27+
"commands.allowedCommands.description": "Comandos que pueden ejecutarse automáticamente cuando 'Aprobar siempre operaciones de ejecución' está activado",
28+
"settings.vsCodeLmModelSelector.description": "Configuración para la API del modelo de lenguaje VSCode",
29+
"settings.vsCodeLmModelSelector.vendor.description": "El proveedor del modelo de lenguaje (ej. copilot)",
30+
"settings.vsCodeLmModelSelector.family.description": "La familia del modelo de lenguaje (ej. gpt-4)",
31+
"settings.customStoragePath.description": "Ruta de almacenamiento personalizada. Dejar vacío para usar la ubicación predeterminada. Admite rutas absolutas (ej. 'D:\\RooCodeStorage')"
32+
}

package.nls.fr.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"extension.displayName": "Roo Code",
3+
"extension.description": "Une équipe complète de développement d'agents IA dans votre éditeur. Anciennement Roo Cline.",
4+
"command.newTask.title": "Nouvelle Tâche",
5+
"command.explainCode.title": "Expliquer le Code",
6+
"command.fixCode.title": "Corriger le Code",
7+
"command.improveCode.title": "Améliorer le Code",
8+
"command.addToContext.title": "Ajouter au Contexte",
9+
"command.openInNewTab.title": "Ouvrir dans un Nouvel Onglet",
10+
"command.focusInput.title": "Focus sur le Champ de Saisie",
11+
"command.setCustomStoragePath.title": "Définir le Chemin de Stockage Personnalisé",
12+
"command.terminal.addToContext.title": "Ajouter le Contenu du Terminal au Contexte",
13+
"command.terminal.fixCommand.title": "Corriger cette Commande",
14+
"command.terminal.explainCommand.title": "Expliquer cette Commande",
15+
"command.terminal.fixCommandInCurrentTask.title": "Corriger cette Commande (Tâche Actuelle)",
16+
"command.terminal.explainCommandInCurrentTask.title": "Expliquer cette Commande (Tâche Actuelle)",
17+
"views.activitybar.title": "Roo Code",
18+
"views.contextMenu.label": "Roo Code",
19+
"views.terminalMenu.label": "Roo Code",
20+
"command.mcpServers.title": "Serveurs MCP",
21+
"command.prompts.title": "Invites",
22+
"command.history.title": "Historique",
23+
"command.openInEditor.title": "Ouvrir dans l'Éditeur",
24+
"command.settings.title": "Paramètres",
25+
"command.documentation.title": "Documentation",
26+
"configuration.title": "Roo Code",
27+
"commands.allowedCommands.description": "Commandes pouvant être exécutées automatiquement lorsque 'Toujours approuver les opérations d'exécution' est activé",
28+
"settings.vsCodeLmModelSelector.description": "Paramètres pour l'API du modèle de langage VSCode",
29+
"settings.vsCodeLmModelSelector.vendor.description": "Le fournisseur du modèle de langage (ex: copilot)",
30+
"settings.vsCodeLmModelSelector.family.description": "La famille du modèle de langage (ex: gpt-4)",
31+
"settings.customStoragePath.description": "Chemin de stockage personnalisé. Laisser vide pour utiliser l'emplacement par défaut. Prend en charge les chemins absolus (ex: 'D:\\RooCodeStorage')"
32+
}

0 commit comments

Comments
 (0)