mirror of
https://github.com/langgenius/dify.git
synced 2026-02-03 17:41:35 +08:00
feat: add trigger events, workflow execution, and start nodes to billing plan features
- Add three new feature items to cloud plan list: - Trigger Events (varies by plan: 3K for sandbox, 20K/month for pro, unlimited for team) - Workflow Execution (standard/faster/priority based on plan) - Start Nodes (limited to 2 for sandbox, unlimited for pro/team) - Add i18n translations for en-US and zh-Hans - Position new items below document processing priority and above divider
This commit is contained in:
parent
0f952f328f
commit
81afd087f6
@ -56,6 +56,31 @@ const List = ({
|
||||
<Item
|
||||
label={[t(`billing.plansCommon.priority.${planInfo.documentProcessingPriority}`), t('billing.plansCommon.documentProcessingPriority')].join('')}
|
||||
/>
|
||||
<Item
|
||||
label={
|
||||
planInfo.triggerEvents === NUM_INFINITE
|
||||
? t('billing.plansCommon.triggerEvents.unlimited')
|
||||
: plan === Plan.sandbox
|
||||
? t('billing.plansCommon.triggerEvents.sandbox', { count: planInfo.triggerEvents })
|
||||
: t('billing.plansCommon.triggerEvents.professional', { count: planInfo.triggerEvents })
|
||||
}
|
||||
/>
|
||||
<Item
|
||||
label={
|
||||
plan === Plan.sandbox
|
||||
? t('billing.plansCommon.workflowExecution.standard')
|
||||
: plan === Plan.professional
|
||||
? t('billing.plansCommon.workflowExecution.faster')
|
||||
: t('billing.plansCommon.workflowExecution.priority')
|
||||
}
|
||||
/>
|
||||
<Item
|
||||
label={
|
||||
plan === Plan.sandbox
|
||||
? t('billing.plansCommon.startNodes.limited', { count: 2 })
|
||||
: t('billing.plansCommon.startNodes.unlimited')
|
||||
}
|
||||
/>
|
||||
<Divider bgStyle='gradient' />
|
||||
<Item
|
||||
label={t('billing.plansCommon.annotatedResponse.title', { count: planInfo.annotatedResponse })}
|
||||
|
||||
@ -74,6 +74,20 @@ const translation = {
|
||||
'priority': 'Priority',
|
||||
'top-priority': 'Top Priority',
|
||||
},
|
||||
triggerEvents: {
|
||||
sandbox: '{{count,number}} Trigger Events',
|
||||
professional: '{{count,number}} Trigger Events/month',
|
||||
unlimited: 'Unlimited Trigger Events',
|
||||
},
|
||||
workflowExecution: {
|
||||
standard: 'Standard Workflow Execution',
|
||||
faster: 'Faster Workflow Execution',
|
||||
priority: 'Priority Workflow Execution',
|
||||
},
|
||||
startNodes: {
|
||||
limited: 'Up to {{count}} Start Nodes per Workflow',
|
||||
unlimited: 'Unlimited Start Nodes per Workflow',
|
||||
},
|
||||
logsHistory: '{{days}} Log history',
|
||||
customTools: 'Custom Tools',
|
||||
unavailable: 'Unavailable',
|
||||
|
||||
@ -73,6 +73,20 @@ const translation = {
|
||||
'priority': '优先',
|
||||
'top-priority': '最高优先级',
|
||||
},
|
||||
triggerEvents: {
|
||||
sandbox: '{{count,number}} 触发事件',
|
||||
professional: '{{count,number}} 触发事件/月',
|
||||
unlimited: '无限制触发事件',
|
||||
},
|
||||
workflowExecution: {
|
||||
standard: '标准工作流执行',
|
||||
faster: '更快的工作流执行',
|
||||
priority: '优先工作流执行',
|
||||
},
|
||||
startNodes: {
|
||||
limited: '每个工作流最多 {{count}} 个起始节点',
|
||||
unlimited: '每个工作流无限制起始节点',
|
||||
},
|
||||
logsHistory: '{{days}}日志历史',
|
||||
customTools: '自定义工具',
|
||||
unavailable: '不可用',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user