feat: SaaS price plan frontend (#1683)

Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
Joel 2023-12-03 22:10:16 +08:00 • committed by GitHub
commit 75a6122173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 2919 additions and 266 deletions

View file

@ -33,6 +33,8 @@ import datasetCreationEn from './lang/dataset-creation.en'
import datasetCreationZh from './lang/dataset-creation.zh'
import exploreEn from './lang/explore.en'
import exploreZh from './lang/explore.zh'
import billingEn from './lang/billing.en'
import billingZh from './lang/billing.zh'
const resources = {
'en': {
@ -55,6 +57,8 @@ const resources = {
datasetSettings: datasetSettingsEn,
datasetCreation: datasetCreationEn,
explore: exploreEn,
// billing
billing: billingEn,
},
},
'zh-Hans': {
@ -77,6 +81,7 @@ const resources = {
datasetSettings: datasetSettingsZh,
datasetCreation: datasetCreationZh,
explore: exploreZh,
billing: billingZh,
},
},
}

View file

@ -0,0 +1,90 @@
const translation = {
currentPlan: 'Current Plan',
upgradeBtn: {
plain: 'Upgrade Plan',
encourage: 'Upgrade Now',
encourageShort: 'Upgrade',
},
viewBilling: 'View billing information',
buyPermissionDeniedTip: 'Please contact your enterprise administrator to subscribe',
plansCommon: {
title: 'Choose a plan that’s right for you',
yearlyTip: 'Get 2 months for free by subscribing yearly!',
mostPopular: 'Most Popular',
planRange: {
monthly: 'Monthly',
yearly: 'Yearly',
},
month: 'month',
year: 'year',
save: 'Save ',
free: 'Free',
currentPlan: 'current plan',
startForFree: 'Start for free',
getStartedWith: 'Get started with ',
contactSales: 'Contact Sales',
talkToSales: 'Talk to Sales',
modelProviders: 'Model Providers',
teamMembers: 'Team Members',
buildApps: 'Build Apps',
vectorSpace: 'Vector Space',
vectorSpaceTooltip: 'Vector Space is the long-term memory system required for LLMs to comprehend your data.',
documentProcessingPriority: 'Document Processing Priority',
documentProcessingPriorityTip: 'For higher document processing priority, please upgrade your plan.',
documentProcessingPriorityUpgrade: 'Process more data with higher accuracy at faster speeds.',
priority: {
'standard': 'Standard',
'priority': 'Priority',
'top-priority': 'Top Priority',
},
logsHistory: 'Logs history',
days: 'days',
unlimited: 'Unlimited',
support: 'Support',
supportItems: {
communityForums: 'Community forums',
emailSupport: 'Email support',
priorityEmail: 'Priority email & chat support',
logoChange: 'Logo change',
SSOAuthentication: 'SSO authentication',
personalizedSupport: 'Personalized support',
dedicatedAPISupport: 'Dedicated API support',
customIntegration: 'Custom integration and support',
},
comingSoon: 'Coming soon',
member: 'Member',
memberAfter: 'Member',
},
plans: {
sandbox: {
name: 'Sandbox',
description: '200 times GPT free trial',
includesTitle: 'Includes:',
},
professional: {
name: 'Professional',
description: 'For individuals and small teams to unlock more power affordably.',
includesTitle: 'Everything in free plan, plus:',
},
team: {
name: 'Team',
description: 'Collaborate without limits and enjoy top-tier performance.',
includesTitle: 'Everything in Professional plan, plus:',
},
enterprise: {
name: 'Enterprise',
description: 'Get full capabilities and support for large-scale mission-critical systems.',
includesTitle: 'Everything in Team plan, plus:',
},
},
vectorSpace: {
fullTip: 'Vector Space is full.',
fullSolution: 'Upgrade your plan to get more space.',
},
apps: {
fullTipLine1: 'Upgrade your plan to',
fullTipLine2: 'build more apps.',
},
}
export default translation

View file

@ -0,0 +1,90 @@
const translation = {
currentPlan: '当前套餐',
upgradeBtn: {
plain: '升级套餐',
encourage: '立即升级',
encourageShort: '升级',
},
viewBilling: '查看账单信息',
buyPermissionDeniedTip: '请联系企业管理员订阅',
plansCommon: {
title: '选择适合您的套餐',
yearlyTip: '订阅年度计划可免费获得 2个月!',
mostPopular: '最受欢迎',
planRange: {
monthly: '按月',
yearly: '按年',
},
month: '月',
year: '年',
save: '节省',
currentPlan: '当前计划',
free: '免费',
startForFree: '免费开始',
getStartedWith: '开始使用',
contactSales: '联系销售',
talkToSales: '联系销售',
modelProviders: '支持的模型提供商',
teamMembers: '团队成员',
buildApps: '构建应用程序数',
vectorSpace: '向量空间',
vectorSpaceTooltip: '向量空间是 LLMs 理解您的数据所需的长期记忆系统。',
documentProcessingPriority: '文档处理优先级',
documentProcessingPriorityTip: '如需更高的文档处理优先级,请升级您的套餐',
documentProcessingPriorityUpgrade: '以更快的速度、更高的精度处理更多的数据。',
priority: {
'standard': '标准',
'priority': '优先',
'top-priority': '最高优先级',
},
logsHistory: '日志历史',
days: '天',
unlimited: '无限制',
support: '支持',
supportItems: {
communityForums: '社区论坛',
emailSupport: '电子邮件支持',
priorityEmail: '优先电子邮件和聊天支持',
logoChange: 'Logo更改',
SSOAuthentication: 'SSO 认证',
personalizedSupport: '个性化支持',
dedicatedAPISupport: '专用 API 支持',
customIntegration: '自定义集成和支持',
},
comingSoon: '即将推出',
member: '成员',
memberAfter: '个成员',
},
plans: {
sandbox: {
name: 'Sandbox',
description: '200次 GPT 免费试用',
includesTitle: '包括:',
},
professional: {
name: 'Professional',
description: '让个人和小团队能够以经济实惠的方式释放更多能力。',
includesTitle: 'Sandbox 计划中的一切,加上:',
},
team: {
name: 'Team',
description: '协作无限制并享受顶级性能。',
includesTitle: 'Professional 计划中的一切,加上:',
},
enterprise: {
name: 'Enterprise',
description: '获得大规模关键任务系统的完整功能和支持。',
includesTitle: 'Team 计划中的一切,加上:',
},
},
vectorSpace: {
fullTip: '向量空间已满。',
fullSolution: '升级您的套餐以获得更多空间。',
},
apps: {
fullTipLine1: '升级您的套餐以',
fullTipLine2: '构建更多的程序。',
},
}
export default translation

View file

@ -104,6 +104,7 @@ const translation = {
workplaceGroup: 'WORKPLACE',
account: 'My account',
members: 'Members',
billing: 'Billing',
integrations: 'Integrations',
language: 'Language',
provider: 'Model Provider',

View file

@ -104,6 +104,7 @@ const translation = {
workplaceGroup: '工作空间',
account: '我的账户',
members: '成员',
billing: '账单',
integrations: '集成',
language: '语言',
provider: '模型供应商',