mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Add docs link for slash commands (#6409)
This commit is contained in:
parent
51836bdafb
commit
8f7ac57e47
19 changed files with 33 additions and 19 deletions
|
|
@ -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<SlashCommandsPopoverProps> = ({ clas
|
|||
{/* Header section */}
|
||||
<div className="p-3 border-b border-vscode-dropdown-border">
|
||||
<p className="m-0 text-xs text-vscode-descriptionForeground">
|
||||
{t("chat:slashCommands.description")}
|
||||
<Trans
|
||||
i18nKey="chat:slashCommands.description"
|
||||
components={{
|
||||
DocsLink: (
|
||||
<a
|
||||
href={buildDocLink("features/slash-commands", "slash_commands")}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
Docs
|
||||
</a>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/ca/chat.json
generated
2
webview-ui/src/i18n/locales/ca/chat.json
generated
|
|
@ -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. <DocsLink>Documentació</DocsLink>",
|
||||
"globalCommands": "Ordres Globals",
|
||||
"workspaceCommands": "Ordres de l'Espai de Treball",
|
||||
"globalCommand": "Ordre global",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/de/chat.json
generated
2
webview-ui/src/i18n/locales/de/chat.json
generated
|
|
@ -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. <DocsLink>Dokumentation</DocsLink>",
|
||||
"globalCommands": "Globale Befehle",
|
||||
"workspaceCommands": "Arbeitsbereich-Befehle",
|
||||
"globalCommand": "Globaler Befehl",
|
||||
|
|
|
|||
|
|
@ -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. <DocsLink>Docs</DocsLink>",
|
||||
"globalCommands": "Global Commands",
|
||||
"workspaceCommands": "Workspace Commands",
|
||||
"globalCommand": "Global command",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/es/chat.json
generated
2
webview-ui/src/i18n/locales/es/chat.json
generated
|
|
@ -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. <DocsLink>Documentación</DocsLink>",
|
||||
"globalCommands": "Comandos Globales",
|
||||
"workspaceCommands": "Comandos del Espacio de Trabajo",
|
||||
"globalCommand": "Comando global",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/fr/chat.json
generated
2
webview-ui/src/i18n/locales/fr/chat.json
generated
|
|
@ -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. <DocsLink>Documentation</DocsLink>",
|
||||
"globalCommands": "Commandes Globales",
|
||||
"workspaceCommands": "Commandes de l'Espace de Travail",
|
||||
"globalCommand": "Commande globale",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/hi/chat.json
generated
2
webview-ui/src/i18n/locales/hi/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "स्लैश कमांड प्रबंधित करें",
|
||||
"title": "स्लैश कमांड",
|
||||
"description": "बार-बार उपयोग किए जाने वाले प्रॉम्प्ट और वर्कफ़्लो तक त्वरित पहुंच के लिए कस्टम स्लैश कमांड बनाएं।",
|
||||
"description": "बार-बार उपयोग किए जाने वाले प्रॉम्प्ट और वर्कफ़्लो तक त्वरित पहुंच के लिए कस्टम स्लैश कमांड बनाएं। <DocsLink>दस्तावेज़</DocsLink>",
|
||||
"globalCommands": "वैश्विक कमांड",
|
||||
"workspaceCommands": "कार्यक्षेत्र कमांड",
|
||||
"globalCommand": "वैश्विक कमांड",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/id/chat.json
generated
2
webview-ui/src/i18n/locales/id/chat.json
generated
|
|
@ -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. <DocsLink>Dokumentasi</DocsLink>",
|
||||
"globalCommands": "Perintah Global",
|
||||
"workspaceCommands": "Perintah Workspace",
|
||||
"globalCommand": "Perintah global",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/it/chat.json
generated
2
webview-ui/src/i18n/locales/it/chat.json
generated
|
|
@ -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. <DocsLink>Documentazione</DocsLink>",
|
||||
"globalCommands": "Comandi Globali",
|
||||
"workspaceCommands": "Comandi dello Spazio di Lavoro",
|
||||
"globalCommand": "Comando globale",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/ja/chat.json
generated
2
webview-ui/src/i18n/locales/ja/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "スラッシュコマンドを管理",
|
||||
"title": "スラッシュコマンド",
|
||||
"description": "よく使用するプロンプトやワークフローに素早くアクセスするためのカスタムスラッシュコマンドを作成します。",
|
||||
"description": "よく使用するプロンプトやワークフローに素早くアクセスするためのカスタムスラッシュコマンドを作成します。<DocsLink>ドキュメント</DocsLink>",
|
||||
"globalCommands": "グローバルコマンド",
|
||||
"workspaceCommands": "ワークスペースコマンド",
|
||||
"globalCommand": "グローバルコマンド",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/ko/chat.json
generated
2
webview-ui/src/i18n/locales/ko/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "슬래시 명령 관리",
|
||||
"title": "슬래시 명령",
|
||||
"description": "자주 사용하는 프롬프트와 워크플로우에 빠르게 액세스할 수 있는 사용자 정의 슬래시 명령을 만듭니다.",
|
||||
"description": "자주 사용하는 프롬프트와 워크플로우에 빠르게 액세스할 수 있는 사용자 정의 슬래시 명령을 만듭니다. <DocsLink>문서</DocsLink>",
|
||||
"globalCommands": "전역 명령",
|
||||
"workspaceCommands": "작업 공간 명령",
|
||||
"globalCommand": "전역 명령",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/nl/chat.json
generated
2
webview-ui/src/i18n/locales/nl/chat.json
generated
|
|
@ -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. <DocsLink>Documentatie</DocsLink>",
|
||||
"globalCommands": "Globale Opdrachten",
|
||||
"workspaceCommands": "Werkruimte Opdrachten",
|
||||
"globalCommand": "Globale opdracht",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/pl/chat.json
generated
2
webview-ui/src/i18n/locales/pl/chat.json
generated
|
|
@ -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. <DocsLink>Dokumentacja</DocsLink>",
|
||||
"globalCommands": "Polecenia Globalne",
|
||||
"workspaceCommands": "Polecenia Obszaru Roboczego",
|
||||
"globalCommand": "Polecenie globalne",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/pt-BR/chat.json
generated
2
webview-ui/src/i18n/locales/pt-BR/chat.json
generated
|
|
@ -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. <DocsLink>Documentação</DocsLink>",
|
||||
"globalCommands": "Comandos Globais",
|
||||
"workspaceCommands": "Comandos do Espaço de Trabalho",
|
||||
"globalCommand": "Comando global",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/ru/chat.json
generated
2
webview-ui/src/i18n/locales/ru/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "Управление слэш-командами",
|
||||
"title": "Слэш-команды",
|
||||
"description": "Создавайте пользовательские слэш-команды для быстрого доступа к часто используемым промптам и рабочим процессам.",
|
||||
"description": "Создавайте пользовательские слэш-команды для быстрого доступа к часто используемым промптам и рабочим процессам. <DocsLink>Документация</DocsLink>",
|
||||
"globalCommands": "Глобальные команды",
|
||||
"workspaceCommands": "Команды рабочего пространства",
|
||||
"globalCommand": "Глобальная команда",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/tr/chat.json
generated
2
webview-ui/src/i18n/locales/tr/chat.json
generated
|
|
@ -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. <DocsLink>Belgeler</DocsLink>",
|
||||
"globalCommands": "Genel Komutlar",
|
||||
"workspaceCommands": "Çalışma Alanı Komutları",
|
||||
"globalCommand": "Genel komut",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/vi/chat.json
generated
2
webview-ui/src/i18n/locales/vi/chat.json
generated
|
|
@ -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. <DocsLink>Tài liệu</DocsLink>",
|
||||
"globalCommands": "Lệnh Toàn Cục",
|
||||
"workspaceCommands": "Lệnh Không Gian Làm Việc",
|
||||
"globalCommand": "Lệnh toàn cục",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/zh-CN/chat.json
generated
2
webview-ui/src/i18n/locales/zh-CN/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "管理斜杠命令",
|
||||
"title": "斜杠命令",
|
||||
"description": "创建自定义斜杠命令,快速访问常用提示词和工作流程。",
|
||||
"description": "创建自定义斜杠命令,快速访问常用提示词和工作流程。<DocsLink>文档</DocsLink>",
|
||||
"globalCommands": "全局命令",
|
||||
"workspaceCommands": "工作区命令",
|
||||
"globalCommand": "全局命令",
|
||||
|
|
|
|||
2
webview-ui/src/i18n/locales/zh-TW/chat.json
generated
2
webview-ui/src/i18n/locales/zh-TW/chat.json
generated
|
|
@ -355,7 +355,7 @@
|
|||
"slashCommands": {
|
||||
"tooltip": "管理斜線指令",
|
||||
"title": "斜線指令",
|
||||
"description": "建立自訂斜線指令,快速存取常用提示詞和工作流程。",
|
||||
"description": "建立自訂斜線指令,快速存取常用提示詞和工作流程。<DocsLink>說明文件</DocsLink>",
|
||||
"globalCommands": "全域指令",
|
||||
"workspaceCommands": "工作區指令",
|
||||
"globalCommand": "全域指令",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue