diff --git a/webview-ui/src/components/welcome/RooTips.tsx b/webview-ui/src/components/welcome/RooTips.tsx index c0d6682d56..789f3d73ad 100644 --- a/webview-ui/src/components/welcome/RooTips.tsx +++ b/webview-ui/src/components/welcome/RooTips.tsx @@ -17,6 +17,12 @@ const tips = [ titleKey: "rooTips.boomerangTasks.title", descriptionKey: "rooTips.boomerangTasks.description", }, + { + icon: "codicon-terminal-cmd", + href: buildDocLink("features/slash-commands", "tips"), + titleKey: "rooTips.slashCommands.title", + descriptionKey: "rooTips.slashCommands.description", + }, ] const RooTips = () => { diff --git a/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx b/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx index eb121aaadf..7ab0b445b6 100644 --- a/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx +++ b/webview-ui/src/components/welcome/__tests__/RooTips.spec.tsx @@ -38,9 +38,9 @@ describe("RooTips Component", () => { render() }) - test("renders only the top two tips", () => { - // Ensure only two tips are present plus the docs link in the Trans component (3 total links) - expect(screen.getAllByRole("link")).toHaveLength(3) + test("renders all three tips", () => { + // Ensure three tips are present plus the docs link in the Trans component (4 total links) + expect(screen.getAllByRole("link")).toHaveLength(4) }) }) }) diff --git a/webview-ui/src/i18n/TRANSLATION_TODO.md b/webview-ui/src/i18n/TRANSLATION_TODO.md new file mode 100644 index 0000000000..49cfed1a3e --- /dev/null +++ b/webview-ui/src/i18n/TRANSLATION_TODO.md @@ -0,0 +1,75 @@ +# Translation TODO for Slash Commands Feature + +The following languages need proper translations for the slash commands tip in the RooTips component: + +## Languages needing translation + +### Portuguese (pt-BR) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Portuguese translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Portuguese translation + +### Korean (ko) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Korean translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Korean translation + +### Hindi (hi) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Hindi translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Hindi translation + +### Italian (it) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Italian translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Italian translation + +### Dutch (nl) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Dutch translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Dutch translation + +### Turkish (tr) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Turkish translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Turkish translation + +### Indonesian (id) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Indonesian translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Indonesian translation + +### Polish (pl) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Polish translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Polish translation + +### Russian (ru) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Russian translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Russian translation + +### Vietnamese (vi) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Vietnamese translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Vietnamese translation + +### Chinese Traditional (zh-TW) + +- `rooTips.slashCommands.title`: Currently "Slash Commands" - needs Chinese Traditional translation +- `rooTips.slashCommands.description`: Currently "Create custom commands for quick access to frequently used prompts" - needs Chinese Traditional translation + +## Languages with proper translations + +The following languages already have proper translations: + +- Spanish (es): "Comandos de Barra" +- French (fr): "Commandes Slash" +- German (de): "Slash-Befehle" +- Japanese (ja): "スラッシュコマンド" +- Catalan (ca): "Ordres de Barra" +- Chinese Simplified (zh-CN): "斜杠命令" + +## Notes + +This is a known limitation that should be addressed in a follow-up PR to provide proper internationalization support for all languages. diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index 2188e9b706..70fd1f5eda 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Modes personalitzables", "description": "Personalitats especialitzades amb comportaments propis i models assignats" + }, + "slashCommands": { + "title": "Ordres de Barra", + "description": "Crea ordres personalitzades per accedir ràpidament a indicacions utilitzades amb freqüència" } }, "selectMode": "Selecciona el mode d'interacció", diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index a9c2a385f9..fcffb71dd1 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Anpassbare Modi", "description": "Spezialisierte Personas mit eigenem Verhalten und zugewiesenen Modellen" + }, + "slashCommands": { + "title": "Slash-Befehle", + "description": "Erstelle benutzerdefinierte Befehle für schnellen Zugriff auf häufig verwendete Prompts" } }, "selectMode": "Interaktionsmodus auswählen", diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index 48d55172a5..f6409f6879 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -109,6 +109,10 @@ "customizableModes": { "title": "Customizable Modes", "description": "Specialized personas with their own behaviors and assigned models" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Select mode for interaction", diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index e1cd0b262a..18c5e2fe0e 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Modos personalizables", "description": "Personalidades especializadas con sus propios comportamientos y modelos asignados" + }, + "slashCommands": { + "title": "Comandos de Barra", + "description": "Crea comandos personalizados para acceso rápido a prompts utilizados frecuentemente" } }, "selectMode": "Seleccionar modo de interacción", diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index b06ed48ea9..6875e14506 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Modes personnalisables", "description": "Des personas spécialisés avec leurs propres comportements et modèles assignés" + }, + "slashCommands": { + "title": "Commandes Slash", + "description": "Créez des commandes personnalisées pour un accès rapide aux prompts fréquemment utilisés" } }, "selectMode": "Sélectionner le mode d'interaction", diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index 1c912c3d70..64cd22c70f 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "अनुकूलन योग्य मोड", "description": "विशिष्ट प्रोफाइल अपने व्यवहार और निर्धारित मॉडल के साथ" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "इंटरैक्शन मोड चुनें", diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json index 2a4345191e..7b247d1898 100644 --- a/webview-ui/src/i18n/locales/id/chat.json +++ b/webview-ui/src/i18n/locales/id/chat.json @@ -112,6 +112,10 @@ "customizableModes": { "title": "Mode yang Dapat Disesuaikan", "description": "Persona khusus dengan perilaku dan model yang ditugaskan sendiri" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Pilih mode untuk interaksi", diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index d36a20f3da..9257b7b2a1 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Modalità personalizzabili", "description": "Personalità specializzate con comportamenti propri e modelli assegnati" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Seleziona modalità di interazione", diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index 1b268f007d..c793e46ecf 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "カスタマイズ可能なモード", "description": "独自の動作と割り当てられたモデルを持つ専門的なペルソナ" + }, + "slashCommands": { + "title": "スラッシュコマンド", + "description": "よく使用するプロンプトへの素早いアクセスのためのカスタムコマンドを作成" } }, "selectMode": "対話モードを選択", diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 147ed8fa5b..76289991fe 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "사용자 정의 모드", "description": "고유한 동작과 할당된 모델을 가진 전문 페르소나" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "상호작용 모드 선택", diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index 9789f634a5..f1bb87e332 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Aanpasbare modi", "description": "Gespecialiseerde persona's met hun eigen gedrag en toegewezen modellen" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Selecteer modus voor interactie", diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index ff1c1dbe89..00f7b129c6 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Konfigurowalne tryby", "description": "Wyspecjalizowane persona z własnymi zachowaniami i przypisanymi modelami" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Wybierz tryb interakcji", diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index 69f197ad2e..7509f80f5b 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Modos personalizáveis", "description": "Personas especializadas com comportamentos próprios e modelos atribuídos" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Selecionar modo de interação", diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json index 579d688a5a..9b52acd4fc 100644 --- a/webview-ui/src/i18n/locales/ru/chat.json +++ b/webview-ui/src/i18n/locales/ru/chat.json @@ -97,6 +97,10 @@ "customizableModes": { "title": "Настраиваемые режимы", "description": "Специализированные персонажи с собственным поведением и назначенными моделями" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "onboarding": "Ваш список задач в этом рабочем пространстве пуст. Начните с ввода задачи ниже. Не знаете, с чего начать? Подробнее о возможностях Roo читайте в документации.", diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index a9ffb31f90..4615b7c602 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Özelleştirilebilir Modlar", "description": "Kendi davranışları ve atanmış modelleri ile özelleştirilmiş kişilikler" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Etkileşim modunu seçin", diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index dc24e40122..075129c7be 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "Chế độ tùy chỉnh", "description": "Các nhân vật chuyên biệt với hành vi riêng và mô hình được chỉ định" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "Chọn chế độ tương tác", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index 6035ff78bf..c0c2579de3 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "自定义模式", "description": "具有专属行为和指定模型的特定角色" + }, + "slashCommands": { + "title": "斜杠命令", + "description": "创建自定义命令以快速访问常用提示词" } }, "selectMode": "选择交互模式", diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index 63dfd06f1d..287d84afda 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -98,6 +98,10 @@ "customizableModes": { "title": "自訂模式", "description": "具有專屬行為和指定模型的特定角色" + }, + "slashCommands": { + "title": "Slash Commands", + "description": "Create custom commands for quick access to frequently used prompts" } }, "selectMode": "選擇互動模式",