fix: invalid docs links in FileSystemSkillPanel (#5518)
* fix invalid documentation link * fix link and trans i18n * fix tag --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
bd0faba9be
commit
bee383f19d
@ -328,7 +328,7 @@ const TRANSLATIONS = {
|
||||
readActions: "اقرأ الإجراءات",
|
||||
writeActions: "الإجراءات",
|
||||
warning:
|
||||
"الوصول إلى نظام الملفات يمكن أن يكون خطيرًا، لأنه يمكنه تعديل أو حذف الملفات. يرجى الرجوع إلى الوثائق <link> قبل تمكينه.",
|
||||
"الوصول إلى نظام الملفات يمكن أن يكون خطيرًا، لأنه يمكنه تعديل أو حذف الملفات. يرجى الرجوع إلى الوثائق قبل تمكينه.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "اقرأ الملف",
|
||||
|
||||
@ -347,7 +347,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Accions de lectura",
|
||||
writeActions: "Accions d'escriptura",
|
||||
warning:
|
||||
"L'accés al sistema de fitxers pot ser perillós, ja que pot modificar o eliminar fitxers. Consulta la <link>documentació</link> abans d'activar-ho.",
|
||||
"L'accés al sistema de fitxers pot ser perillós, ja que pot modificar o eliminar fitxers. Consulta la <a>documentació</a> abans d'activar-ho.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Llegeix fitxer",
|
||||
|
||||
@ -344,7 +344,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Činnosti",
|
||||
writeActions: "Akce",
|
||||
warning:
|
||||
"Přístup k souborovému systému může být nebezpečný, protože může upravovat nebo mazat soubory. Před zapnutím funkce prosím nahlédněte do dokumentace <link>dokumentace</link>.",
|
||||
"Přístup k souborovému systému může být nebezpečný, protože může upravovat nebo mazat soubory. Před zapnutím funkce prosím nahlédněte do dokumentace <a>dokumentace</a>.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Otevřít soubor",
|
||||
|
||||
@ -332,7 +332,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Læs handlinger",
|
||||
writeActions: "Skriv handlinger",
|
||||
warning:
|
||||
"Adgang til filsystemet kan være farligt, da det kan ændre eller slette filer. Se venligst <link>dokumentationen</link> før du aktiverer denne funktion.",
|
||||
"Adgang til filsystemet kan være farligt, da det kan ændre eller slette filer. Se venligst <a>dokumentationen</a> før du aktiverer denne funktion.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Åbn fil",
|
||||
|
||||
@ -336,7 +336,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Lesen von Aktionen",
|
||||
writeActions: "Aktionen",
|
||||
warning:
|
||||
"Der Zugriff auf das Dateisystem kann gefährlich sein, da er Dateien ändern oder löschen kann. Bitte konsultieren Sie vor der Aktivierung die <link>Dokumentation</link>.",
|
||||
"Der Zugriff auf das Dateisystem kann gefährlich sein, da er Dateien ändern oder löschen kann. Bitte konsultieren Sie vor der Aktivierung die <a>Dokumentation</a>.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Datei öffnen/lesen",
|
||||
|
||||
@ -341,7 +341,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Read Actions",
|
||||
writeActions: "Write Actions",
|
||||
warning:
|
||||
"Filesystem access can be dangerous as it can modify or delete files. Please consult the <link>documentation</link> before enabling.",
|
||||
"Filesystem access can be dangerous as it can modify or delete files. Please consult the <a>documentation</a> before enabling.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Read File",
|
||||
|
||||
@ -341,7 +341,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Leer acciones",
|
||||
writeActions: "Acciones a realizar",
|
||||
warning:
|
||||
"El acceso al sistema de archivos puede ser peligroso, ya que puede modificar o eliminar archivos. Consulte la <link>documentación</link> antes de habilitarlo.",
|
||||
"El acceso al sistema de archivos puede ser peligroso, ya que puede modificar o eliminar archivos. Consulte la <a>documentación</a> antes de habilitarlo.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Abrir archivo",
|
||||
|
||||
@ -327,7 +327,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Leia toimingud",
|
||||
writeActions: "Toimingud",
|
||||
warning:
|
||||
"Failisüsteemi juurimine võib olla ohtlik, kuna see võib muuta või kustutada faile. Enne selle aktiveerimist, palun vaadake <link>dokumentatsiooni</link>.",
|
||||
"Failisüsteemi juurimine võib olla ohtlik, kuna see võib muuta või kustutada faile. Enne selle aktiveerimist, palun vaadake <a>dokumentatsiooni</a>.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Ava fail",
|
||||
|
||||
@ -331,7 +331,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Lire les actions",
|
||||
writeActions: "Actions à effectuer",
|
||||
warning:
|
||||
"L'accès au système de fichiers peut être dangereux, car il peut modifier ou supprimer des fichiers. Veuillez consulter la <link>documentation</link> avant de l'activer.",
|
||||
"L'accès au système de fichiers peut être dangereux, car il peut modifier ou supprimer des fichiers. Veuillez consulter la <a>documentation</a> avant de l'activer.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Ouvrir le fichier",
|
||||
|
||||
@ -329,7 +329,7 @@ const TRANSLATIONS = {
|
||||
readActions: "קריאת פעולות",
|
||||
writeActions: "פעולות",
|
||||
warning:
|
||||
"גישה למערכת הקבצים עלולה להיות מסוכנת, שכן היא עלולה לשנות או למחוק קבצים. אנא התייעצו עם ה<link>תיעוד</link> לפני הפעלתה.",
|
||||
"גישה למערכת הקבצים עלולה להיות מסוכנת, שכן היא עלולה לשנות או למחוק קבצים. אנא התייעצו עם ה<a>תיעוד</a> לפני הפעלתה.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "קרא קובץ",
|
||||
|
||||
@ -334,7 +334,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Leggi le azioni",
|
||||
writeActions: "Azioni da eseguire",
|
||||
warning:
|
||||
"L'accesso al file system può essere pericoloso, in quanto può modificare o eliminare file. Si prega di consultare la <link>documentazione</link> prima di abilitarlo.",
|
||||
"L'accesso al file system può essere pericoloso, in quanto può modificare o eliminare file. Si prega di consultare la <a>documentazione</a> prima di abilitarlo.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Apri file",
|
||||
|
||||
@ -326,7 +326,7 @@ const TRANSLATIONS = {
|
||||
readActions: "行動",
|
||||
writeActions: "行動",
|
||||
warning:
|
||||
"ファイルシステムへのアクセスは危険であり、ファイルの内容を変更または削除する可能性があります。設定する前に、必ず<link>のドキュメント</link>を参照してください。",
|
||||
"ファイルシステムへのアクセスは危険であり、ファイルの内容を変更または削除する可能性があります。設定する前に、必ず<a>のドキュメント</a>を参照してください。",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "ファイルを開く",
|
||||
|
||||
@ -330,7 +330,7 @@ const TRANSLATIONS = {
|
||||
readActions: "실행 내용 보기",
|
||||
writeActions: "실행 내용",
|
||||
warning:
|
||||
"파일 시스템 접근은 위험할 수 있습니다. 왜냐하면 파일 내용을 변경하거나 삭제할 수 있기 때문입니다. 사용하기 전에 반드시 <link>문서</link>를 참조하십시오.",
|
||||
"파일 시스템 접근은 위험할 수 있습니다. 왜냐하면 파일 내용을 변경하거나 삭제할 수 있기 때문입니다. 사용하기 전에 반드시 <a>문서</a>를 참조하십시오.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "파일 읽기",
|
||||
|
||||
@ -343,7 +343,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Veikimas",
|
||||
writeActions: "Veikimas",
|
||||
warning:
|
||||
"Failų sistemos prieigos vartymas gali būti pavojus, nes gali modifikuoti arba ištrinti failus. Prašome, prieš įgalindami, pasikonsultuoti su <link>dokumentacija</link>.",
|
||||
"Failų sistemos prieigos vartymas gali būti pavojus, nes gali modifikuoti arba ištrinti failus. Prašome, prieš įgalindami, pasikonsultuoti su <a>dokumentacija</a>.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Atidaryti failą",
|
||||
|
||||
@ -335,7 +335,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Lasīt",
|
||||
writeActions: "Rīcības",
|
||||
warning:
|
||||
"Pieejums failu sistēmai var būt bīstams, jo tas var mainīt vai dzēst failus. Lūdzu, konsultējieties ar <link>dokumentāciju</link> pirms aktivizēšanas.",
|
||||
"Pieejums failu sistēmai var būt bīstams, jo tas var mainīt vai dzēst failus. Lūdzu, konsultējieties ar <a>dokumentāciju</a> pirms aktivizēšanas.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Atvērt failu",
|
||||
|
||||
@ -331,7 +331,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Lees acties",
|
||||
writeActions: "Schrijf acties",
|
||||
warning:
|
||||
"Toegang tot het bestandssysteem kan gevaarlijk zijn, omdat het bestanden kan wijzigen of verwijderen. Raadpleeg de <link>documentatie</link> voordat u dit activeert.",
|
||||
"Toegang tot het bestandssysteem kan gevaarlijk zijn, omdat het bestanden kan wijzigen of verwijderen. Raadpleeg de <a>documentatie</a> voordat u dit activeert.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Bestand openen",
|
||||
|
||||
@ -337,7 +337,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Czytać akcje",
|
||||
writeActions: "Działania",
|
||||
warning:
|
||||
"Dostęp do systemu plików może być niebezpieczny, ponieważ może modyfikować lub usuwać pliki. Prosimy o zapoznanie się z dokumentacją <link> przed włączeniem tej funkcji.",
|
||||
"Dostęp do systemu plików może być niebezpieczny, ponieważ może modyfikować lub usuwać pliki. Prosimy o zapoznanie się z dokumentacją <a> przed włączeniem tej funkcji.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Otwórz plik",
|
||||
|
||||
@ -335,7 +335,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Ler ações",
|
||||
writeActions: "Ações a serem executadas",
|
||||
warning:
|
||||
"O acesso ao sistema de arquivos pode ser perigoso, pois pode modificar ou excluir arquivos. Por favor, consulte a <link>documentação</link> antes de habilitar.",
|
||||
"O acesso ao sistema de arquivos pode ser perigoso, pois pode modificar ou excluir arquivos. Por favor, consulte a <a>documentação</a> antes de habilitar.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Abrir arquivo",
|
||||
|
||||
@ -793,7 +793,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Cite",
|
||||
writeActions: "Acțiuni",
|
||||
warning:
|
||||
"Accesul la sistemul de fișiere poate fi periculos, deoarece poate modifica sau șterge fișiere. Vă rugăm să consultați documentația <link>înainte de a-l activa.",
|
||||
"Accesul la sistemul de fișiere poate fi periculos, deoarece poate modifica sau șterge fișiere. Vă rugăm să consultați documentația <a>înainte de a-l activa.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Citește fișierul",
|
||||
|
||||
@ -329,7 +329,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Прочитать действия",
|
||||
writeActions: "Определить действия",
|
||||
warning:
|
||||
"Доступ к файловой системе может быть опасным, так как он может изменять или удалять файлы. Пожалуйста, ознакомьтесь с <link>документацией</link> перед включением.",
|
||||
"Доступ к файловой системе может быть опасным, так как он может изменять или удалять файлы. Пожалуйста, ознакомьтесь с <a>документацией</a> перед включением.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Открыть файл",
|
||||
|
||||
@ -330,7 +330,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Okunmuş Eylemler",
|
||||
writeActions: "Yapılacak İşler",
|
||||
warning:
|
||||
"Dosya sistemine erişim tehlikeli olabilir, çünkü dosyaları değiştirebilir veya silebilir. Bu özelliği etkinleştirmeden önce lütfen <link>belgelendirme</link>'i inceleyin.",
|
||||
"Dosya sistemine erişim tehlikeli olabilir, çünkü dosyaları değiştirebilir veya silebilir. Bu özelliği etkinleştirmeden önce lütfen <a>belgelendirme</a>'i inceleyin.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Dosyayı aç",
|
||||
|
||||
@ -328,7 +328,7 @@ const TRANSLATIONS = {
|
||||
readActions: "Đọc hành động",
|
||||
writeActions: "Các hành động",
|
||||
warning:
|
||||
"Việc truy cập hệ thống tệp có thể gây nguy hiểm vì nó có thể sửa đổi hoặc xóa các tệp. Vui lòng tham khảo tài liệu <link> trước khi kích hoạt.",
|
||||
"Việc truy cập hệ thống tệp có thể gây nguy hiểm vì nó có thể sửa đổi hoặc xóa các tệp. Vui lòng tham khảo tài liệu <a> trước khi kích hoạt.",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "Đọc tệp",
|
||||
|
||||
@ -320,7 +320,7 @@ const TRANSLATIONS = {
|
||||
readActions: "阅读操作",
|
||||
writeActions: "编写操作",
|
||||
warning:
|
||||
"访问文件系统可能存在风险,因为它可能修改或删除文件。在启用之前,请务必查阅<link>文档</link>。",
|
||||
"访问文件系统可能存在风险,因为它可能修改或删除文件。在启用之前,请务必查阅<a>文档</a>。",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "读取文件",
|
||||
|
||||
@ -310,7 +310,7 @@ const TRANSLATIONS = {
|
||||
readActions: "閱讀行動",
|
||||
writeActions: "撰寫動作",
|
||||
warning:
|
||||
"訪問檔案系統可能存在風險,因為它可能會修改或刪除檔案。在啟用之前,請務必查閱相關<link>文件</link>。",
|
||||
"訪問檔案系統可能存在風險,因為它可能會修改或刪除檔案。在啟用之前,請務必查閱相關<a>文件</a>。",
|
||||
skills: {
|
||||
"read-text-file": {
|
||||
title: "開啟檔案",
|
||||
|
||||
@ -17,6 +17,7 @@ import {
|
||||
Copy,
|
||||
} from "@phosphor-icons/react";
|
||||
import Admin from "@/models/admin";
|
||||
import paths from "@/utils/paths";
|
||||
|
||||
export const getFileSystemSubSkills = (t) => {
|
||||
return [
|
||||
@ -188,7 +189,7 @@ export default function FileSystemSkillPanel({
|
||||
{t("agent.skill.filesystem.description")}
|
||||
</p>
|
||||
<Link
|
||||
to="/docs/guides/agent-skills/filesystem-agent"
|
||||
to={paths.docs("/agent/usage/file-system-agent")}
|
||||
target="_blank"
|
||||
className="text-sky-400 hover:text-sky-500 text-xs font-medium underline"
|
||||
>
|
||||
@ -273,10 +274,11 @@ function WarningBanner() {
|
||||
<Trans
|
||||
i18nKey="agent.skill.filesystem.warning"
|
||||
components={{
|
||||
link: (
|
||||
a: (
|
||||
<Link
|
||||
to="/docs/guides/agent-skills/filesystem-agent"
|
||||
to={paths.docs("/agent/usage/file-system-agent")}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="underline hover:text-orange-300 light:hover:text-orange-700"
|
||||
/>
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user