feat: member invitation and activation (#535)

Co-authored-by: John Wang <takatost@gmail.com>
This commit is contained in:
KVOJJJin
2023-07-14 11:19:26 +08:00
committed by GitHub
parent 004b3caa43
commit cd51d3323b
51 changed files with 1235 additions and 329 deletions

View File

@@ -14,6 +14,7 @@ const translation = {
edit: 'Edit',
add: 'Add',
refresh: 'Restart',
reset: 'Reset',
search: 'Search',
change: 'Change',
remove: 'Remove',
@@ -95,6 +96,14 @@ const translation = {
avatar: 'Avatar',
name: 'Name',
email: 'Email',
password: 'Password',
passwordTip: 'You can set a permanent password if you dont want to use temporary login codes',
setPassword: 'Set a password',
resetPassword: 'Reset password',
currentPassword: 'Current password',
newPassword: 'New password',
confirmPassword: 'Confirm password',
notEqual: 'Two passwords are different.',
langGeniusAccount: 'Dify account',
langGeniusAccountTip: 'Your Dify account and associated user data.',
editName: 'Edit Name',
@@ -111,15 +120,16 @@ const translation = {
admin: 'Admin',
adminTip: 'Can build apps & manage team settings',
normal: 'Normal',
normalTip: 'Only can use appscan not build apps',
normalTip: 'Only can use apps, can not build apps',
inviteTeamMember: 'Add team member',
inviteTeamMemberTip: 'They can access your team data directly after signing in.',
email: 'Email',
emailInvalid: 'Invalid Email Format',
emailPlaceholder: 'Input Email',
sendInvite: 'Add',
invitationSent: 'Added',
invitationSentTip: 'Added, and they can sign in to Dify to access your team data.',
invitationSent: 'Invitation sent',
invitationSentTip: 'Invitation sent, and they can sign in to Dify to access your team data.',
invitationLink: 'Invitation Link',
ok: 'OK',
removeFromTeam: 'Remove from team',
removeFromTeamTip: 'Will remove team access',

View File

@@ -14,6 +14,7 @@ const translation = {
edit: '编辑',
add: '添加',
refresh: '重新开始',
reset: '重置',
search: '搜索',
change: '更改',
remove: '移除',
@@ -95,7 +96,14 @@ const translation = {
avatar: '头像',
name: '用户名',
email: '邮箱',
edit: '编辑',
password: '密码',
passwordTip: '如果您不想使用验证码登录,可以设置永久密码',
setPassword: '设置密码',
resetPassword: '重置密码',
currentPassword: '原密码',
newPassword: '新密码',
notEqual: '两个密码不相同',
confirmPassword: '确认密码',
langGeniusAccount: 'Dify 账号',
langGeniusAccountTip: '您的 Dify 账号和相关的用户数据。',
editName: '编辑名字',
@@ -119,8 +127,9 @@ const translation = {
emailInvalid: '邮箱格式无效',
emailPlaceholder: '输入邮箱',
sendInvite: '添加',
invitationSent: '已添加',
invitationSentTip: '已添加,对方登录 Dify 后即可访问你的团队数据。',
invitationSent: '邀请已发送',
invitationSentTip: '邀请已发送,对方登录 Dify 后即可访问你的团队数据。',
invitationLink: '邀请链接',
ok: '好的',
removeFromTeam: '移除团队',
removeFromTeamTip: '将取消团队访问',

View File

@@ -1,41 +1,57 @@
const translation = {
"pageTitle": "Hey, let's get started!👋",
"welcome": "Welcome to Dify, please log in to continue.",
"email": "Email address",
"password": "Password",
"name": "Name",
"forget": "Forgot your password?",
"signBtn": "Sign in",
"installBtn": "Setting",
"setAdminAccount": "Setting up an admin account",
"setAdminAccountDesc": "Maximum privileges for admin account, which can be used to create applications and manage LLM providers, etc.",
"createAndSignIn": "Create and sign in",
"oneMoreStep": "One more step",
"createSample": "Based on this information, well create sample application for you",
"invitationCode": "Invitation Code",
"interfaceLanguage": "Interface Dify",
"timezone": "Time zone",
"go": "Go to Dify",
"sendUsMail": "Email us your introduction, and we'll handle the invitation request.",
"acceptPP": "I have read and accept the privacy policy",
"reset": "Please run following command to reset your password",
"withGitHub": "Continue with GitHub",
"withGoogle": "Continue with Google",
"rightTitle": "Unlock the full potential of LLM",
"rightDesc": "Effortlessly build visually captivating, operable, and improvable AI applications.",
"tos": "Terms of Service",
"pp": "Privacy Policy",
"tosDesc": "By signing up, you agree to our",
"donthave": "Don't have?",
"invalidInvitationCode": "Invalid invitation code",
"accountAlreadyInited": "Account already inited",
"error": {
"emailEmpty": "Email address is required",
"emailInValid": "Please enter a valid email address",
"nameEmpty": "Name is required",
"passwordEmpty": "Password is required",
"passwordInvalid": "Password must contain letters and numbers, and the length must be greater than 8",
}
pageTitle: 'Hey, let\'s get started!👋',
welcome: 'Welcome to Dify, please log in to continue.',
email: 'Email address',
emailPlaceholder: 'Your email',
password: 'Password',
passwordPlaceholder: 'Your password',
name: 'Username',
namePlaceholder: 'Your username',
forget: 'Forgot your password?',
signBtn: 'Sign in',
installBtn: 'Setting',
setAdminAccount: 'Setting up an admin account',
setAdminAccountDesc: 'Maximum privileges for admin account, which can be used to create applications and manage LLM providers, etc.',
createAndSignIn: 'Create and sign in',
oneMoreStep: 'One more step',
createSample: 'Based on this information, well create sample application for you',
invitationCode: 'Invitation Code',
invitationCodePlaceholder: 'Your invitation code',
interfaceLanguage: 'Interface Language',
timezone: 'Time zone',
go: 'Go to Dify',
sendUsMail: 'Email us your introduction, and we\'ll handle the invitation request.',
acceptPP: 'I have read and accept the privacy policy',
reset: 'Please run following command to reset your password',
withGitHub: 'Continue with GitHub',
withGoogle: 'Continue with Google',
rightTitle: 'Unlock the full potential of LLM',
rightDesc: 'Effortlessly build visually captivating, operable, and improvable AI applications.',
tos: 'Terms of Service',
pp: 'Privacy Policy',
tosDesc: 'By signing up, you agree to our',
donthave: 'Don\'t have?',
invalidInvitationCode: 'Invalid invitation code',
accountAlreadyInited: 'Account already inited',
error: {
emailEmpty: 'Email address is required',
emailInValid: 'Please enter a valid email address',
nameEmpty: 'Name is required',
passwordEmpty: 'Password is required',
passwordInvalid: 'Password must contain letters and numbers, and the length must be greater than 8',
},
license: {
tip: 'Before starting Dify Community Edition, read the GitHub',
link: 'Open-source License',
},
join: 'Join',
joinTipStart: 'Invite you join',
joinTipEnd: 'team on Dify',
invalid: 'The link has expired',
explore: 'Explore Dify',
activatedTipStart: 'You have joined the',
activatedTipEnd: 'team',
activated: 'Sign In Now',
}
export default translation

View File

@@ -1,41 +1,57 @@
const translation = {
"pageTitle": "嗨,近来可好 👋",
"welcome": "欢迎来到 Dify, 登录以继续",
"email": "邮箱",
"password": "密码",
"name": "用户名",
"forget": "忘记密码?",
"signBtn": "登录",
"installBtn": "设置",
"setAdminAccount": "设置管理员账户",
"setAdminAccountDesc": "管理员拥有的最大权限,可用于创建应用和管理 LLM 供应商等。",
"createAndSignIn": "创建账户",
"oneMoreStep": "还差一步",
"createSample": "基于这些信息,我们将为您创建一个示例应用",
"invitationCode": "邀请码",
"interfaceLanguage": "界面语言",
"timezone": "时区",
"go": "跳转至 Dify",
"sendUsMail": "发封邮件介绍你自己,我们会尽快处理。",
"acceptPP": "我已阅读并接受隐私政策",
"reset": "请运行以下命令重置密码",
"withGitHub": "使用 GitHub 登录",
"withGoogle": "使用 Google 登录",
"rightTitle": "释放大型语言模型的全部潜能",
"rightDesc": "简单构建可视化、可运营、可改进的 AI 应用",
"tos": "使用协议",
"pp": "隐私政策",
"tosDesc": "使用即代表你并同意我们的",
"donthave": "还没有邀请码?",
"invalidInvitationCode": "无效的邀请码",
"accountAlreadyInited": "账户已经初始化",
"error": {
"emailEmpty": "邮箱不能为空",
"emailInValid": "请输入有效的邮箱地址",
"nameEmpty": "用户名不能为空",
"passwordEmpty": "密码不能为空",
"passwordInvalid": "密码必须包含字母和数字且长度不小于8位",
}
pageTitle: '嗨,近来可好 👋',
welcome: '欢迎来到 Dify, 登录以继续',
email: '邮箱',
emailPlaceholder: '输入邮箱地址',
password: '密码',
passwordPlaceholder: '输入密码',
name: '用户名',
namePlaceholder: '输入用户名',
forget: '忘记密码?',
signBtn: '登录',
installBtn: '设置',
setAdminAccount: '设置管理员账户',
setAdminAccountDesc: '管理员拥有的最大权限,可用于创建应用和管理 LLM 供应商等。',
createAndSignIn: '创建账户',
oneMoreStep: '还差一步',
createSample: '基于这些信息,我们将为您创建一个示例应用',
invitationCode: '邀请码',
invitationCodePlaceholder: '输入邀请码',
interfaceLanguage: '界面语言',
timezone: '时区',
go: '跳转至 Dify',
sendUsMail: '发封邮件介绍你自己,我们会尽快处理。',
acceptPP: '我已阅读并接受隐私政策',
reset: '请运行以下命令重置密码',
withGitHub: '使用 GitHub 登录',
withGoogle: '使用 Google 登录',
rightTitle: '释放大型语言模型的全部潜能',
rightDesc: '简单构建可视化、可运营、可改进的 AI 应用',
tos: '使用协议',
pp: '隐私政策',
tosDesc: '使用即代表你并同意我们的',
donthave: '还没有邀请码?',
invalidInvitationCode: '无效的邀请码',
accountAlreadyInited: '账户已经初始化',
error: {
emailEmpty: '邮箱不能为空',
emailInValid: '请输入有效的邮箱地址',
nameEmpty: '用户名不能为空',
passwordEmpty: '密码不能为空',
passwordInvalid: '密码必须包含字母和数字且长度不小于8位',
},
license: {
tip: '启动 Dify 社区版之前, 请阅读 GitHub 上的',
link: '开源协议',
},
join: '加入',
joinTipStart: '邀请你加入',
joinTipEnd: '团队',
invalid: '链接已失效',
explore: '探索 Dify',
activatedTipStart: '您已加入',
activatedTipEnd: '团队',
activated: '现在登录',
}
export default translation