chore: add i18n str

pull/12372/head
AkaraChen 1 year ago
parent 244517e6e7
commit e0b7f48b6b

@ -114,10 +114,11 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {
<PortalToFollowElemContent className='z-10'> <PortalToFollowElemContent className='z-10'>
<div className='bg-components-panel-bg-blur border-components-panel-border border-[0.5px] rounded-md shadow overflow-hidden w-[388px]'> <div className='bg-components-panel-bg-blur border-components-panel-border border-[0.5px] rounded-md shadow overflow-hidden w-[388px]'>
<header className='p-2 gap-1 flex'> <header className='p-2 gap-1 flex'>
<SearchInput placeholder='Search agentic strategy' value={query} onChange={setQuery} className={'w-full'} /> <SearchInput placeholder={t('workflow.nodes.agent.strategy.searchPlaceholder')} value={query} onChange={setQuery} className={'w-full'} />
<ViewTypeSelect viewType={viewType} onChange={setViewType} /> <ViewTypeSelect viewType={viewType} onChange={setViewType} />
</header> </header>
<main className="md:h-[300px] xl:h-[400px] 2xl:h-[564px] relative overflow-hidden"> <main className="md:h-[300px] xl:h-[400px] 2xl:h-[564px] relative overflow-hidden">
{/* TODO: fix when in list view show workflow as group label */}
<Tools <Tools
tools={filteredTools} tools={filteredTools}
viewType={viewType} viewType={viewType}
@ -131,7 +132,7 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {
setOpen(false) setOpen(false)
}} }}
hasSearchText={false} hasSearchText={false}
showWorkflowEmpty showWorkflowEmpty={false}
className='max-w-none' className='max-w-none'
indexBarClassName='top-0 xl:top-36' indexBarClassName='top-0 xl:top-36'
/> />

@ -704,6 +704,7 @@ const translation = {
configureTip: 'Please configure agentic strategy.', configureTip: 'Please configure agentic strategy.',
configureTipDesc: 'After configuring the agentic strategy, this node will automatically load the remaining configurations. The strategy will affect the mechanism of multi-step tool reasoning. ', configureTipDesc: 'After configuring the agentic strategy, this node will automatically load the remaining configurations. The strategy will affect the mechanism of multi-step tool reasoning. ',
selectTip: 'Select agentic strategy', selectTip: 'Select agentic strategy',
searchPlaceholder: 'Search agentic strategy',
}, },
learnMore: 'Learn more', learnMore: 'Learn more',
pluginNotInstalled: 'This plugin is not installed', pluginNotInstalled: 'This plugin is not installed',

@ -704,6 +704,7 @@ const translation = {
configureTip: '请配置 Agent 策略。', configureTip: '请配置 Agent 策略。',
configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。', configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。',
selectTip: '选择 Agent 策略', selectTip: '选择 Agent 策略',
searchPlaceholder: '搜索 Agent 策略',
}, },
learnMore: '了解更多', learnMore: '了解更多',
pluginNotInstalled: '插件未安装', pluginNotInstalled: '插件未安装',

Loading…
Cancel
Save