New Auth Methods (#8119)

This commit is contained in:
NFish
2024-10-21 09:23:20 +08:00
committed by GitHub
parent 853b0e84cc
commit 3898fe3311
32 changed files with 1568 additions and 787 deletions

View File

@@ -1,6 +1,6 @@
const translation = {
pageTitle: 'Hey, let\'s get started!👋',
welcome: 'Welcome to Dify, please log in to continue.',
pageTitle: 'Hey, let\'s get started!',
welcome: '👋 Welcome to Dify, please log in to continue.',
email: 'Email address',
emailPlaceholder: 'Your email',
password: 'Password',
@@ -9,7 +9,11 @@ const translation = {
namePlaceholder: 'Your username',
forget: 'Forgot your password?',
signBtn: 'Sign in',
sso: 'Continue with SSO',
continueWithCode: 'Continue With Code',
sendVerificationCode: 'Send Verification Code',
usePassword: 'Use Password',
useVerificationCode: 'Use Verification Code',
or: 'OR',
installBtn: 'Set up',
setAdminAccount: 'Setting up an admin account',
setAdminAccountDesc: 'Maximum privileges for admin account, which can be used to create applications and manage LLM providers, etc.',
@@ -26,6 +30,7 @@ const translation = {
reset: 'Please run following command to reset your password',
withGitHub: 'Continue with GitHub',
withGoogle: 'Continue with Google',
withSSO: 'Continue with SSO',
rightTitle: 'Unlock the full potential of LLM',
rightDesc: 'Effortlessly build visually captivating, operable, and improvable AI applications.',
tos: 'Terms of Service',
@@ -42,8 +47,9 @@ const translation = {
forgotPasswordDesc: 'Please enter your email address to reset your password. We will send you an email with instructions on how to reset your password.',
checkEmailForResetLink: 'Please check your email for a link to reset your password. If it doesn\'t appear within a few minutes, make sure to check your spam folder.',
passwordChanged: 'Sign in now',
changePassword: 'Change Password',
changePassword: 'Set a password',
changePasswordTip: 'Please enter a new password for your account',
changePasswordBtn: 'Set a password',
invalidToken: 'Invalid or expired token',
confirmPassword: 'Confirm Password',
confirmPasswordPlaceholder: 'Confirm your new password',
@@ -55,14 +61,15 @@ const translation = {
passwordEmpty: 'Password is required',
passwordLengthInValid: 'Password must be at least 8 characters',
passwordInvalid: 'Password must contain letters and numbers, and the length must be greater than 8',
registrationNotAllowed: 'Account not found. Please contact the system admin to register.',
},
license: {
tip: 'Before starting Dify Community Edition, read the GitHub',
link: 'Open-source License',
},
join: 'Join',
joinTipStart: 'Invite you join',
joinTipEnd: 'team on Dify',
join: 'Join ',
joinTipStart: 'Invite you join ',
joinTipEnd: ' team on Dify',
invalid: 'The link has expired',
explore: 'Explore Dify',
activatedTipStart: 'You have joined the',
@@ -70,6 +77,27 @@ const translation = {
activated: 'Sign in now',
adminInitPassword: 'Admin initialization password',
validate: 'Validate',
checkCode: {
checkYourEmail: 'Check your email',
tips: 'We send a verification code to <strong>{{email}}</strong>',
validTime: 'Bear in mind that the code is valid for 5 minutes',
verificationCode: 'Verification code',
verificationCodePlaceholder: 'Enter 6-digit code',
verify: 'Verify',
didNotReceiveCode: 'Didn\'t receive the code? ',
resend: 'Resend',
useAnotherMethod: 'Use another method',
emptyCode: 'Code is required',
invalidCode: 'Invalid code',
},
resetPassword: 'Reset Password',
resetPasswordDesc: 'Type the email you used to sign up on Dify and we will send you a password reset email.',
backToLogin: 'Back to login',
setYourAccount: 'Set Your Account',
enterYourName: 'Please enter your username',
back: 'Back',
noLoginMethod: 'Authentication method not configured',
noLoginMethodTip: 'Please contact the system admin to add an authentication method.',
}
export default translation