chore: enchance the copywriting of tool (#20294)

This commit is contained in:
Joel 2025-05-27 16:40:11 +08:00 • committed by GitHub
commit abc32edf28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 12 additions and 44 deletions

View file

@ -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'>

View file

@ -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>
))}

View file

@ -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'>

View file

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

View file

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

View file

@ -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',

View file

@ -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.',

View file

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

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

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

View file

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

View file

@ -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',

View file

@ -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',

View file

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

View file

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

View file

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

View file

@ -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',

View file

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

Some files were not shown because too many files have changed in this diff Show more