Переглянути джерело

chore: enchance the copywriting of tool (#20294)

tags/1.4.2
Joel 5 місяці тому
джерело
коміт
abc32edf28
Аккаунт користувача з таким Email не знайдено
46 змінених файлів з 12 додано та 44 видалено
  1. 1
    1
      web/app/components/plugins/plugin-detail-panel/action-list.tsx
  2. 2
    1
      web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx
  3. 3
    1
      web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx
  4. 1
    1
      web/app/components/workflow/nodes/tool/panel.tsx
  5. 0
    1
      web/i18n/de-DE/tools.ts
  6. 0
    1
      web/i18n/de-DE/workflow.ts
  7. 1
    0
      web/i18n/en-US/plugin.ts
  8. 0
    1
      web/i18n/en-US/tools.ts
  9. 1
    1
      web/i18n/en-US/workflow.ts
  10. 0
    1
      web/i18n/es-ES/tools.ts
  11. 0
    1
      web/i18n/es-ES/workflow.ts
  12. 0
    1
      web/i18n/fa-IR/tools.ts
  13. 0
    1
      web/i18n/fa-IR/workflow.ts
  14. 0
    1
      web/i18n/fr-FR/tools.ts
  15. 0
    1
      web/i18n/fr-FR/workflow.ts
  16. 0
    1
      web/i18n/hi-IN/tools.ts
  17. 0
    1
      web/i18n/hi-IN/workflow.ts
  18. 0
    1
      web/i18n/it-IT/tools.ts
  19. 0
    1
      web/i18n/it-IT/workflow.ts
  20. 0
    1
      web/i18n/ja-JP/tools.ts
  21. 0
    1
      web/i18n/ja-JP/workflow.ts
  22. 0
    1
      web/i18n/ko-KR/tools.ts
  23. 0
    1
      web/i18n/ko-KR/workflow.ts
  24. 0
    1
      web/i18n/pl-PL/tools.ts
  25. 0
    1
      web/i18n/pl-PL/workflow.ts
  26. 0
    1
      web/i18n/pt-BR/tools.ts
  27. 0
    1
      web/i18n/pt-BR/workflow.ts
  28. 0
    1
      web/i18n/ro-RO/tools.ts
  29. 0
    1
      web/i18n/ro-RO/workflow.ts
  30. 0
    1
      web/i18n/ru-RU/tools.ts
  31. 0
    1
      web/i18n/ru-RU/workflow.ts
  32. 0
    1
      web/i18n/sl-SI/tools.ts
  33. 0
    1
      web/i18n/sl-SI/workflow.ts
  34. 0
    1
      web/i18n/th-TH/tools.ts
  35. 0
    1
      web/i18n/th-TH/workflow.ts
  36. 0
    1
      web/i18n/tr-TR/tools.ts
  37. 0
    1
      web/i18n/tr-TR/workflow.ts
  38. 0
    1
      web/i18n/uk-UA/tools.ts
  39. 0
    1
      web/i18n/uk-UA/workflow.ts
  40. 0
    1
      web/i18n/vi-VN/tools.ts
  41. 0
    1
      web/i18n/vi-VN/workflow.ts
  42. 1
    0
      web/i18n/zh-Hans/plugin.ts
  43. 0
    1
      web/i18n/zh-Hans/tools.ts
  44. 1
    1
      web/i18n/zh-Hans/workflow.ts
  45. 0
    1
      web/i18n/zh-Hant/tools.ts
  46. 1
    1
      web/i18n/zh-Hant/workflow.ts

+ 1
- 1
web/app/components/plugins/plugin-detail-panel/action-list.tsx Переглянути файл

@@ -78,7 +78,7 @@ const ActionList = ({
className='w-full'
onClick={() => setShowSettingAuth(true)}
disabled={!isCurrentWorkspaceManager}
>{t('tools.auth.unauthorized')}</Button>
>{t('workflow.nodes.tool.authorize')}</Button>
)}
</div>
<div className='flex flex-col gap-2'>

+ 2
- 1
web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx Переглянути файл

@@ -141,7 +141,7 @@ const MultipleToolSelector = ({
}
panelShowState={panelShowState}
onPanelShowStateChange={setPanelShowState}
isEdit={false}
/>
{value.length === 0 && (
<div className='system-xs-regular flex justify-center rounded-[10px] bg-background-section p-3 text-text-tertiary'>{t('plugin.detailPanel.toolSelector.empty')}</div>
@@ -158,6 +158,7 @@ const MultipleToolSelector = ({
onSelect={item => handleConfigure(item, index)}
onDelete={() => handleDelete(index)}
supportEnableSwitch
isEdit
/>
</div>
))}

+ 3
- 1
web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx Переглянути файл

@@ -54,6 +54,7 @@ type Props = {
scope?: string
value?: ToolValue
selectedTools?: ToolValue[]
isEdit?: boolean
onSelect: (tool: {
provider_name: string
tool_name: string
@@ -77,6 +78,7 @@ type Props = {
const ToolSelector: FC<Props> = ({
value,
selectedTools,
isEdit,
disabled,
placement = 'left',
offset = 4,
@@ -277,7 +279,7 @@ const ToolSelector: FC<Props> = ({
<div className={cn('relative max-h-[642px] min-h-20 w-[361px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pb-4 shadow-lg backdrop-blur-sm', !isShowSettingAuth && 'overflow-y-auto pb-2')}>
{!isShowSettingAuth && (
<>
<div className='system-xl-semibold px-4 pb-1 pt-3.5 text-text-primary'>{t('plugin.detailPanel.toolSelector.title')}</div>
<div className='system-xl-semibold px-4 pb-1 pt-3.5 text-text-primary'>{t(`plugin.detailPanel.toolSelector.${isEdit ? 'toolSetting' : 'title'}`)}</div>
{/* base form */}
<div className='flex flex-col gap-3 px-4 py-2'>
<div className='flex flex-col gap-1'>

+ 1
- 1
web/app/components/workflow/nodes/tool/panel.tsx Переглянути файл

@@ -79,7 +79,7 @@ const Panel: FC<NodePanelProps<ToolNodeType>> = ({
className='w-full'
onClick={showSetAuthModal}
>
{t(`${i18nPrefix}.toAuthorize`)}
{t(`${i18nPrefix}.authorize`)}
</Button>
</div>
</>

+ 0
- 1
web/i18n/de-DE/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Von',
auth: {
unauthorized: 'Zur Autorisierung',
authorized: 'Autorisiert',
setup: 'Autorisierung einrichten, um zu nutzen',
setupModalTitle: 'Autorisierung einrichten',

+ 0
- 1
web/i18n/de-DE/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'assignedVarsDescription': 'Zugewiesene Variablen müssen beschreibbare Variablen sein, z. B. Konversationsvariablen.',
},
tool: {
toAuthorize: 'Autorisieren',
inputVars: 'Eingabevariablen',
outputVars: {
text: 'durch das Tool generierter Inhalt',

+ 1
- 0
web/i18n/en-US/plugin.ts Переглянути файл

@@ -77,6 +77,7 @@ const translation = {
modelNum: '{{num}} MODELS INCLUDED',
toolSelector: {
title: 'Add tool',
toolSetting: 'Tool Settings',
toolLabel: 'Tool',
descriptionLabel: 'Tool description',
descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',

+ 0
- 1
web/i18n/en-US/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'By',
auth: {
unauthorized: 'To Authorize',
authorized: 'Authorized',
setup: 'Set up authorization to use',
setupModalTitle: 'Set Up Authorization',

+ 1
- 1
web/i18n/en-US/workflow.ts Переглянути файл

@@ -651,7 +651,7 @@ const translation = {
'assignedVarsDescription': 'Assigned variables must be writable variables, such as conversation variables.',
},
tool: {
toAuthorize: 'To authorize',
authorize: 'Authorize',
inputVars: 'Input Variables',
outputVars: {
text: 'tool generated content',

+ 0
- 1
web/i18n/es-ES/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'Por',
auth: {
unauthorized: 'Para Autorizar',
authorized: 'Autorizado',
setup: 'Configurar la autorización para usar',
setupModalTitle: 'Configurar Autorización',

+ 0
- 1
web/i18n/es-ES/workflow.ts Переглянути файл

@@ -646,7 +646,6 @@ const translation = {
'assignedVarsDescription': 'Las variables asignadas deben ser variables grabables, como las variables de conversación.',
},
tool: {
toAuthorize: 'Para autorizar',
inputVars: 'Variables de entrada',
outputVars: {
text: 'Contenido generado por la herramienta',

+ 0
- 1
web/i18n/fa-IR/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'توسط',
auth: {
unauthorized: 'برای مجوز دادن',
authorized: 'مجوز داده شده',
setup: 'تنظیم مجوز برای استفاده',
setupModalTitle: 'تنظیم مجوز',

+ 0
- 1
web/i18n/fa-IR/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'varNotSet': 'متغیر NOT Set',
},
tool: {
toAuthorize: 'برای مجوز دادن',
inputVars: 'متغیرهای ورودی',
outputVars: {
text: 'محتوای تولید شده توسط ابزار',

+ 0
- 1
web/i18n/fr-FR/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Par',
auth: {
unauthorized: 'Pour Autoriser',
authorized: 'Autorisé',
setup: 'Mettez en place l\'autorisation à utiliser',
setupModalTitle: 'Configurer l\'Autorisation',

+ 0
- 1
web/i18n/fr-FR/workflow.ts Переглянути файл

@@ -647,7 +647,6 @@ const translation = {
'selectAssignedVariable': 'Sélectionner la variable affectée...',
},
tool: {
toAuthorize: 'Autoriser',
inputVars: 'Variables de saisie',
outputVars: {
text: 'contenu généré par l\'outil',

+ 0
- 1
web/i18n/hi-IN/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'द्वारा',
auth: {
unauthorized: 'अधिकृत करने के लिए',
authorized: 'अधिकृत',
setup: 'उपयोग करने के लिए अधिकृति सेटअप करें',
setupModalTitle: 'अधिकृति सेटअप करें',

+ 0
- 1
web/i18n/hi-IN/workflow.ts Переглянути файл

@@ -664,7 +664,6 @@ const translation = {
'noAssignedVars': 'कोई उपलब्ध असाइन किए गए चर नहीं',
},
tool: {
toAuthorize: 'अधिकृत करने के लिए',
inputVars: 'इनपुट वेरिएबल्स',
outputVars: {
text: 'उपकरण द्वारा उत्पन्न सामग्री',

+ 0
- 1
web/i18n/it-IT/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'Di',
auth: {
unauthorized: 'Per Autorizzare',
authorized: 'Autorizzato',
setup: 'Configura l\'autorizzazione per utilizzare',
setupModalTitle: 'Configura Autorizzazione',

+ 0
- 1
web/i18n/it-IT/workflow.ts Переглянути файл

@@ -666,7 +666,6 @@ const translation = {
'noVarTip': 'Fare clic sul pulsante "+" per aggiungere variabili',
},
tool: {
toAuthorize: 'Per autorizzare',
inputVars: 'Variabili di Input',
outputVars: {
text: 'contenuto generato dallo strumento',

+ 0
- 1
web/i18n/ja-JP/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: '著者:',
auth: {
unauthorized: '認証する',
authorized: '認証済み',
setup: '使用するための認証を設定する',
setupModalTitle: '認証の設定',

+ 0
- 1
web/i18n/ja-JP/workflow.ts Переглянути файл

@@ -654,7 +654,6 @@ const translation = {
'assignedVarsDescription': '代入される変数は、会話変数などの書き込み可能な変数である必要があります。',
},
tool: {
toAuthorize: '承認するには',
inputVars: '入力変数',
outputVars: {
text: 'ツールが生成したコンテンツ',

+ 0
- 1
web/i18n/ko-KR/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: '저자',
auth: {
unauthorized: '인증되지 않음',
authorized: '인증됨',
setup: '사용을 위한 인증 설정',
setupModalTitle: '인증 설정',

+ 0
- 1
web/i18n/ko-KR/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'varNotSet': '변수가 설정되지 않음',
},
tool: {
toAuthorize: '승인하기',
inputVars: '입력 변수',
outputVars: {
text: '도구가 생성한 내용',

+ 0
- 1
web/i18n/pl-PL/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Przez',
auth: {
unauthorized: 'Autoryzacja',
authorized: 'Zautoryzowane',
setup: 'Skonfiguruj autoryzację aby użyć',
setupModalTitle: 'Konfiguruj autoryzację',

+ 0
- 1
web/i18n/pl-PL/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'noVarTip': 'Kliknij przycisk "+", aby dodać zmienne',
},
tool: {
toAuthorize: 'Do autoryzacji',
inputVars: 'Zmienne wejściowe',
outputVars: {
text: 'treść generowana przez narzędzie',

+ 0
- 1
web/i18n/pt-BR/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Por',
auth: {
unauthorized: 'Para Autorizar',
authorized: 'Autorizado',
setup: 'Configurar autorização para usar',
setupModalTitle: 'Configurar Autorização',

+ 0
- 1
web/i18n/pt-BR/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'variables': 'Variáveis',
},
tool: {
toAuthorize: 'Autorizar',
inputVars: 'Variáveis de entrada',
outputVars: {
text: 'conteúdo gerado pela ferramenta',

+ 0
- 1
web/i18n/ro-RO/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'De',
auth: {
unauthorized: 'Pentru a Autoriza',
authorized: 'Autorizat',
setup: 'Configurează autorizarea pentru a utiliza',
setupModalTitle: 'Configurează Autorizarea',

+ 0
- 1
web/i18n/ro-RO/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'variables': 'Variabile',
},
tool: {
toAuthorize: 'Autorizați',
inputVars: 'Variabile de intrare',
outputVars: {
text: 'conținut generat de instrument',

+ 0
- 1
web/i18n/ru-RU/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'Автор',
auth: {
unauthorized: 'Авторизовать',
authorized: 'Авторизовано',
setup: 'Настроить авторизацию для использования',
setupModalTitle: 'Настроить авторизацию',

+ 0
- 1
web/i18n/ru-RU/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'selectAssignedVariable': 'Выберите назначенную переменную...',
},
tool: {
toAuthorize: 'Авторизовать',
inputVars: 'Входные переменные',
outputVars: {
text: 'контент, сгенерированный инструментом',

+ 0
- 1
web/i18n/sl-SI/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'Avtor',
auth: {
unauthorized: 'Za avtorizacijo',
authorized: 'Avtorizirano',
setup: 'Nastavite avtorizacijo za uporabo',
setupModalTitle: 'Nastavi avtorizacijo',

+ 0
- 1
web/i18n/sl-SI/workflow.ts Переглянути файл

@@ -488,7 +488,6 @@ const translation = {
'variable': 'Spremenljivka',
},
tool: {
toAuthorize: 'Za avtorizacijo',
inputVars: 'Vhodne spremenljivke',
outputVars: {
text: 'orodje je ustvarilo vsebino',

+ 0
- 1
web/i18n/th-TH/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'โดย',
auth: {
unauthorized: 'การอนุญาต',
authorized: 'อนุญาต',
setup: 'ตั้งค่าการให้สิทธิ์เพื่อใช้',
setupModalTitle: 'ตั้งค่าการให้สิทธิ์',

+ 0
- 1
web/i18n/th-TH/workflow.ts Переглянути файл

@@ -647,7 +647,6 @@ const translation = {
'setParameter': 'ตั้งค่าพารามิเตอร์...',
},
tool: {
toAuthorize: 'เพื่ออนุญาต',
inputVars: 'ตัวแปรอินพุต',
outputVars: {
text: 'เนื้อหาที่สร้างขึ้นด้วยเครื่องมือ',

+ 0
- 1
web/i18n/tr-TR/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: 'Tarafından',
auth: {
unauthorized: 'Yetki Ver',
authorized: 'Yetkilendirildi',
setup: 'Kullanmak için yetkilendirmeyi ayarla',
setupModalTitle: 'Yetkilendirmeyi Ayarla',

+ 0
- 1
web/i18n/tr-TR/workflow.ts Переглянути файл

@@ -649,7 +649,6 @@ const translation = {
'noAssignedVars': 'Kullanılabilir atanmış değişken yok',
},
tool: {
toAuthorize: 'Yetkilendirmek için',
inputVars: 'Giriş Değişkenleri',
outputVars: {
text: 'araç tarafından oluşturulan içerik',

+ 0
- 1
web/i18n/uk-UA/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Автор',
auth: {
unauthorized: 'Авторизуватися',
authorized: 'Авторизовано',
setup: 'Налаштувати авторизацію, щоб використовувати',
setupModalTitle: 'Налаштування авторизації',

+ 0
- 1
web/i18n/uk-UA/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'setParameter': 'Встановити параметр...',
},
tool: {
toAuthorize: 'Авторизувати',
inputVars: 'Вхідні змінні',
outputVars: {
text: 'генерований вміст інструменту',

+ 0
- 1
web/i18n/vi-VN/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: 'Tác giả',
auth: {
unauthorized: 'Chưa xác thực',
authorized: 'Đã xác thực',
setup: 'Thiết lập xác thực để sử dụng',
setupModalTitle: 'Thiết lập xác thực',

+ 0
- 1
web/i18n/vi-VN/workflow.ts Переглянути файл

@@ -648,7 +648,6 @@ const translation = {
'variables': 'Biến',
},
tool: {
toAuthorize: 'Ủy quyền',
inputVars: 'Biến đầu vào',
outputVars: {
text: 'nội dung do công cụ tạo ra',

+ 1
- 0
web/i18n/zh-Hans/plugin.ts Переглянути файл

@@ -77,6 +77,7 @@ const translation = {
modelNum: '{{num}} 模型已包含',
toolSelector: {
title: '添加工具',
toolSetting: '工具设置',
toolLabel: '工具',
descriptionLabel: '工具描述',
descriptionPlaceholder: '简要描述工具目的,例如,获取特定位置的温度。',

+ 0
- 1
web/i18n/zh-Hans/tools.ts Переглянути файл

@@ -15,7 +15,6 @@ const translation = {
},
author: '作者',
auth: {
unauthorized: '去授权',
authorized: '已授权',
setup: '要使用请先授权',
setupModalTitle: '设置授权',

+ 1
- 1
web/i18n/zh-Hans/workflow.ts Переглянути файл

@@ -652,7 +652,7 @@ const translation = {
'assignedVarsDescription': '赋值变量必须是可写入的变量,例如会话变量。',
},
tool: {
toAuthorize: '授权',
authorize: '授权',
inputVars: '输入变量',
outputVars: {
text: '工具生成的内容',

+ 0
- 1
web/i18n/zh-Hant/tools.ts Переглянути файл

@@ -14,7 +14,6 @@ const translation = {
},
author: '作者',
auth: {
unauthorized: '去授權',
authorized: '已授權',
setup: '要使用請先授權',
setupModalTitle: '設定授權',

+ 1
- 1
web/i18n/zh-Hant/workflow.ts Переглянути файл

@@ -648,7 +648,7 @@ const translation = {
'varNotSet': '未設置變數',
},
tool: {
toAuthorize: '授權',
authorize: '授權',
inputVars: '輸入變量',
outputVars: {
text: '工具生成的內容',

Завантаження…
Відмінити
Зберегти