diff --git a/webview-ui/src/components/chat/SlashCommandsPopover.tsx b/webview-ui/src/components/chat/SlashCommandsPopover.tsx index 2cff55aa56..3a8bb8ae43 100644 --- a/webview-ui/src/components/chat/SlashCommandsPopover.tsx +++ b/webview-ui/src/components/chat/SlashCommandsPopover.tsx @@ -1,5 +1,6 @@ import React, { useEffect, useState } from "react" import { Zap } from "lucide-react" +import { Trans } from "react-i18next" import { useAppTranslation } from "@/i18n/TranslationContext" import { useExtensionState } from "@/context/ExtensionStateContext" @@ -7,6 +8,7 @@ import { Button, Popover, PopoverContent, PopoverTrigger, StandardTooltip } from import { useRooPortal } from "@/components/ui/hooks/useRooPortal" import { cn } from "@/lib/utils" import { vscode } from "@/utils/vscode" +import { buildDocLink } from "@/utils/docLinks" import { SlashCommandsList } from "./SlashCommandsList" @@ -69,7 +71,19 @@ export const SlashCommandsPopover: React.FC = ({ clas {/* Header section */}

- {t("chat:slashCommands.description")} + + Docs + + ), + }} + />

diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index 91bcffd946..da0eb00a44 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Gestionar ordres de barra", "title": "Ordres de Barra", - "description": "Crea ordres de barra personalitzades per accedir ràpidament a indicacions i fluxos de treball utilitzats amb freqüència.", + "description": "Crea ordres de barra personalitzades per accedir ràpidament a indicacions i fluxos de treball utilitzats amb freqüència. Documentació", "globalCommands": "Ordres Globals", "workspaceCommands": "Ordres de l'Espai de Treball", "globalCommand": "Ordre global", diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index c10fc8cf8a..36c03c9309 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Slash-Befehle verwalten", "title": "Slash-Befehle", - "description": "Erstelle benutzerdefinierte Slash-Befehle für schnellen Zugriff auf häufig verwendete Prompts und Workflows.", + "description": "Erstelle benutzerdefinierte Slash-Befehle für schnellen Zugriff auf häufig verwendete Prompts und Workflows. Dokumentation", "globalCommands": "Globale Befehle", "workspaceCommands": "Arbeitsbereich-Befehle", "globalCommand": "Globaler Befehl", diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index 7edd4d314c..b33ddd4ab4 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Manage slash commands", "title": "Slash Commands", - "description": "Create custom slash commands for quick access to frequently used prompts and workflows.", + "description": "Create custom slash commands for quick access to frequently used prompts and workflows. Docs", "globalCommands": "Global Commands", "workspaceCommands": "Workspace Commands", "globalCommand": "Global command", diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index bedf55c56d..156af85012 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Gestionar comandos de barra", "title": "Comandos de Barra", - "description": "Crea comandos de barra personalizados para acceder rápidamente a prompts y flujos de trabajo utilizados con frecuencia.", + "description": "Crea comandos de barra personalizados para acceder rápidamente a prompts y flujos de trabajo utilizados con frecuencia. Documentación", "globalCommands": "Comandos Globales", "workspaceCommands": "Comandos del Espacio de Trabajo", "globalCommand": "Comando global", diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index 4236ed9477..959db06b39 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Gérer les commandes slash", "title": "Commandes Slash", - "description": "Créez des commandes slash personnalisées pour accéder rapidement aux prompts et flux de travail fréquemment utilisés.", + "description": "Créez des commandes slash personnalisées pour accéder rapidement aux prompts et flux de travail fréquemment utilisés. Documentation", "globalCommands": "Commandes Globales", "workspaceCommands": "Commandes de l'Espace de Travail", "globalCommand": "Commande globale", diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index dbefcc4d21..21d81e4b88 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "स्लैश कमांड प्रबंधित करें", "title": "स्लैश कमांड", - "description": "बार-बार उपयोग किए जाने वाले प्रॉम्प्ट और वर्कफ़्लो तक त्वरित पहुंच के लिए कस्टम स्लैश कमांड बनाएं।", + "description": "बार-बार उपयोग किए जाने वाले प्रॉम्प्ट और वर्कफ़्लो तक त्वरित पहुंच के लिए कस्टम स्लैश कमांड बनाएं। दस्तावेज़", "globalCommands": "वैश्विक कमांड", "workspaceCommands": "कार्यक्षेत्र कमांड", "globalCommand": "वैश्विक कमांड", diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json index 868569e2bc..fd594480a8 100644 --- a/webview-ui/src/i18n/locales/id/chat.json +++ b/webview-ui/src/i18n/locales/id/chat.json @@ -361,7 +361,7 @@ "slashCommands": { "tooltip": "Kelola perintah slash", "title": "Perintah Slash", - "description": "Buat perintah slash kustom untuk akses cepat ke prompt dan alur kerja yang sering digunakan.", + "description": "Buat perintah slash kustom untuk akses cepat ke prompt dan alur kerja yang sering digunakan. Dokumentasi", "globalCommands": "Perintah Global", "workspaceCommands": "Perintah Workspace", "globalCommand": "Perintah global", diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index 6ee86d1d6c..5b92e06322 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Gestisci comandi slash", "title": "Comandi Slash", - "description": "Crea comandi slash personalizzati per accedere rapidamente a prompt e flussi di lavoro utilizzati frequentemente.", + "description": "Crea comandi slash personalizzati per accedere rapidamente a prompt e flussi di lavoro utilizzati frequentemente. Documentazione", "globalCommands": "Comandi Globali", "workspaceCommands": "Comandi dello Spazio di Lavoro", "globalCommand": "Comando globale", diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index c42a1a771b..0ed516f2b7 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "スラッシュコマンドを管理", "title": "スラッシュコマンド", - "description": "よく使用するプロンプトやワークフローに素早くアクセスするためのカスタムスラッシュコマンドを作成します。", + "description": "よく使用するプロンプトやワークフローに素早くアクセスするためのカスタムスラッシュコマンドを作成します。ドキュメント", "globalCommands": "グローバルコマンド", "workspaceCommands": "ワークスペースコマンド", "globalCommand": "グローバルコマンド", diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 472b70608e..95f783b085 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "슬래시 명령 관리", "title": "슬래시 명령", - "description": "자주 사용하는 프롬프트와 워크플로우에 빠르게 액세스할 수 있는 사용자 정의 슬래시 명령을 만듭니다.", + "description": "자주 사용하는 프롬프트와 워크플로우에 빠르게 액세스할 수 있는 사용자 정의 슬래시 명령을 만듭니다. 문서", "globalCommands": "전역 명령", "workspaceCommands": "작업 공간 명령", "globalCommand": "전역 명령", diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index fd814f6e8f..4bfaf467f6 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Slash-opdrachten beheren", "title": "Slash-opdrachten", - "description": "Maak aangepaste slash-opdrachten voor snelle toegang tot veelgebruikte prompts en workflows.", + "description": "Maak aangepaste slash-opdrachten voor snelle toegang tot veelgebruikte prompts en workflows. Documentatie", "globalCommands": "Globale Opdrachten", "workspaceCommands": "Werkruimte Opdrachten", "globalCommand": "Globale opdracht", diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index 00a340204f..10ee653582 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Zarządzaj poleceniami slash", "title": "Polecenia Slash", - "description": "Twórz niestandardowe polecenia slash dla szybkiego dostępu do często używanych promptów i przepływów pracy.", + "description": "Twórz niestandardowe polecenia slash dla szybkiego dostępu do często używanych promptów i przepływów pracy. Dokumentacja", "globalCommands": "Polecenia Globalne", "workspaceCommands": "Polecenia Obszaru Roboczego", "globalCommand": "Polecenie globalne", diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index 7657595493..b286f5c0ad 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Gerenciar comandos de barra", "title": "Comandos de Barra", - "description": "Crie comandos de barra personalizados para acesso rápido a prompts e fluxos de trabalho usados com frequência.", + "description": "Crie comandos de barra personalizados para acesso rápido a prompts e fluxos de trabalho usados com frequência. Documentação", "globalCommands": "Comandos Globais", "workspaceCommands": "Comandos do Espaço de Trabalho", "globalCommand": "Comando global", diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json index d563c36674..af3e9aadf8 100644 --- a/webview-ui/src/i18n/locales/ru/chat.json +++ b/webview-ui/src/i18n/locales/ru/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Управление слэш-командами", "title": "Слэш-команды", - "description": "Создавайте пользовательские слэш-команды для быстрого доступа к часто используемым промптам и рабочим процессам.", + "description": "Создавайте пользовательские слэш-команды для быстрого доступа к часто используемым промптам и рабочим процессам. Документация", "globalCommands": "Глобальные команды", "workspaceCommands": "Команды рабочего пространства", "globalCommand": "Глобальная команда", diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index 8025598588..e6868b5db1 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Eğik çizgi komutlarını yönet", "title": "Eğik Çizgi Komutları", - "description": "Sık kullanılan komut istemleri ve iş akışlarına hızlı erişim için özel eğik çizgi komutları oluşturun.", + "description": "Sık kullanılan komut istemleri ve iş akışlarına hızlı erişim için özel eğik çizgi komutları oluşturun. Belgeler", "globalCommands": "Genel Komutlar", "workspaceCommands": "Çalışma Alanı Komutları", "globalCommand": "Genel komut", diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index b54c840ad7..2b86060ceb 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "Quản lý lệnh gạch chéo", "title": "Lệnh Gạch Chéo", - "description": "Tạo lệnh gạch chéo tùy chỉnh để truy cập nhanh vào các lời nhắc và quy trình làm việc thường dùng.", + "description": "Tạo lệnh gạch chéo tùy chỉnh để truy cập nhanh vào các lời nhắc và quy trình làm việc thường dùng. Tài liệu", "globalCommands": "Lệnh Toàn Cục", "workspaceCommands": "Lệnh Không Gian Làm Việc", "globalCommand": "Lệnh toàn cục", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index 22b7d5d9bf..dc21acee0b 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "管理斜杠命令", "title": "斜杠命令", - "description": "创建自定义斜杠命令,快速访问常用提示词和工作流程。", + "description": "创建自定义斜杠命令,快速访问常用提示词和工作流程。文档", "globalCommands": "全局命令", "workspaceCommands": "工作区命令", "globalCommand": "全局命令", diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index e9ccf8aa77..fc38009186 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -355,7 +355,7 @@ "slashCommands": { "tooltip": "管理斜線指令", "title": "斜線指令", - "description": "建立自訂斜線指令,快速存取常用提示詞和工作流程。", + "description": "建立自訂斜線指令,快速存取常用提示詞和工作流程。說明文件", "globalCommands": "全域指令", "workspaceCommands": "工作區指令", "globalCommand": "全域指令",