Fast, accurate OCR with correctness assessment.
import type { TranslationShape } from '../types';
const zhCN = {
signIn: '登录',
signInProgress: '登录中…',
signOut: '退出登录',
accountOrEmail: '用户名 / 邮箱',
email: '邮箱',
phone: '手机号',
password: '密码',
verificationCode: '验证码',
accountPassword: '账号密码',
otherSignInMethods: '其他登录方式',
signInWith: '{{provider}}登录',
wechat: '微信',
enterEmail: '请输入邮箱',
enterPhone: '请输入手机号',
enterPassword: '请输入密码',
enterRegisteredEmail: '请输入注册邮箱',
enterRegisteredPhone: '请输入注册手机号',
enterNewPassword: '请输入新密码(至少 8 位)',
enterCode: '请输入 6 位验证码',
enterAccountOrEmail: '请输入用户名 / 邮箱',
invalidEmail: '请输入正确的邮箱',
invalidMainlandPhone: '请输入中国大陆手机号',
welcomeCredits: '注册即送 100 积分',
freeTrial: '免费体验千万级 Tokens',
invitationCode: '邀请码(可选,绑定手机号后生效)',
currentEnvironmentCode: '当前环境验证码',
currentEnvironmentEmailCode: '当前环境邮箱验证码',
forgotPassword: '忘记密码?',
backToPasswordLogin: '返回账号密码登录',
resendCode: '重新发送验证码',
sendCode: '发送验证码',
sendingCode: '发送中…',
resendIn: '{{seconds}}s 后重发',
resending: '重发中…',
verifying: '验证中…',
verifyAndSignIn: '完成验证并登录',
verifySignInSource: '验证登录来源',
codeWillBeSentTo: '验证码将发送至您的{{channel}}。',
phoneChannel: '手机',
emailChannel: '邮箱',
codeSending: '验证码正在发送,请稍候查收。',
codeSent: '验证码已发送,请查收。',
codeSendFailed: '验证码发送失败,请重试。',
invalidSecurityResponse: '安全验证响应无效,请重新登录',
signInSourceChanged: '登录来源发生变化,请完成验证码验证',
failedToSendCode: '验证码发送失败,请点击重发',
feilianNoEmail: '飞连账号缺少邮箱,无法登录。',
feilianAccessDenied: '该飞连账号无登录权限,请联系管理员。',
signInFailed: '登录失败:{{reason}}',
bindPhone: '绑定手机号',
bindPhoneAndContinue: '绑定并继续',
binding: '绑定中…',
accountSecurity: '账号安全',
phoneBindingDescription: '邮箱账号完成手机号绑定后,注册流程才算完成,并可领取相应注册与邀请奖励。',
backToSignIn: '返回登录',
phoneAlreadyBound: '手机号只能绑定一个账号,已被其他账号使用的号码无法绑定。',
signInOrCreateAccount: '立即登录 / 注册',
unregisteredPhoneRegistration: ',未注册的手机号将自动注册',
emailRegistrationRequirement: ',邮箱注册需绑定手机号后完成注册',
agreementPrefix: '注册登录即代表已阅读并同意我们的',
agreementReadAndAgree: '已阅读并同意',
agreementLabel: '同意用户协议与隐私政策',
agreementTitle: '服务协议及隐私保护',
disagree: '不同意',
agree: '同意',
termsOfService: '用户协议',
agreementAnd: '与',
privacyPolicy: '隐私政策',
showPassword: '显示密码',
hidePassword: '隐藏密码',
recoverPassword: '找回登录密码',
recoverByEmail: '邮箱找回',
recoverByPhone: '手机找回',
passwordResetSuccess: '密码已重置,请用新密码登录',
passwordResetRequirements: '请填写{{channel}}、6 位验证码与至少 8 位的新密码',
resetPassword: '重置密码',
resettingPassword: '重置中…',
missingAuthenticationToken: '登录响应缺少身份令牌',
passwordConfirmationMismatch: '两次输入的密码不一致',
emailCodeSent: '验证码已发送至邮箱',
resetTokenSent: '重置令牌已发送,请查收邮箱',
} as const;
const enUS = {
signIn: 'Sign in',
signInProgress: 'Signing in…',
signOut: 'Sign out',
accountOrEmail: 'Username / email',
email: 'Email',
phone: 'Phone number',
password: 'Password',
verificationCode: 'Verification code',
accountPassword: 'Password',
otherSignInMethods: 'Other sign-in methods',
signInWith: 'Sign in with {{provider}}',
wechat: 'WeChat',
enterEmail: 'Enter your email address',
enterPhone: 'Enter your phone number',
enterPassword: 'Enter your password',
enterRegisteredEmail: 'Enter your registered email address',
enterRegisteredPhone: 'Enter your registered phone number',
enterNewPassword: 'Enter a new password (at least 8 characters)',
enterCode: 'Enter the 6-digit verification code',
enterAccountOrEmail: 'Enter your username or email address',
invalidEmail: 'Enter a valid email address',
invalidMainlandPhone: 'Enter a valid Mainland China phone number',
welcomeCredits: 'Get 100 Credits when you sign up',
freeTrial: 'Explore millions of Tokens at no cost',
invitationCode: 'Invitation code (optional; applied after phone verification)',
currentEnvironmentCode: 'Verification code for this environment',
currentEnvironmentEmailCode: 'Email verification code for this environment',
forgotPassword: 'Forgot password?',
backToPasswordLogin: 'Back to password sign-in',
resendCode: 'Resend verification code',
sendCode: 'Send verification code',
sendingCode: 'Sending…',
resendIn: 'Resend in {{seconds}}s',
resending: 'Resending…',
verifying: 'Verifying…',
verifyAndSignIn: 'Verify and sign in',
verifySignInSource: 'Verify sign-in source',
codeWillBeSentTo: 'A verification code will be sent to your {{channel}}.',
phoneChannel: 'phone number',
emailChannel: 'email address',
codeSending: 'Your verification code is being sent. Please check shortly.',
codeSent: 'Your verification code has been sent.',
codeSendFailed: 'Could not send the verification code. Please try again.',
invalidSecurityResponse: 'The security verification response is invalid. Please sign in again.',
signInSourceChanged: 'Your sign-in source changed. Complete verification to continue.',
failedToSendCode: 'Could not send the verification code. Select resend to try again.',
feilianNoEmail: 'The Feilian account has no email address and cannot be used to sign in.',
feilianAccessDenied: 'This Feilian account is not authorized to sign in. Contact an administrator.',
signInFailed: 'Sign-in failed: {{reason}}',
bindPhone: 'Verify phone number',
bindPhoneAndContinue: 'Verify and continue',
binding: 'Verifying…',
accountSecurity: 'Account security',
phoneBindingDescription:
'Complete phone verification for this email account to finish registration and receive eligible sign-up and referral rewards.',
backToSignIn: 'Back to sign in',
phoneAlreadyBound:
'A phone number can be linked to only one account. Numbers already linked to another account cannot be used.',
signInOrCreateAccount: 'Sign in or create account',
unregisteredPhoneRegistration: '. Unregistered phone numbers create an account automatically.',
emailRegistrationRequirement: '. Email registrations require phone verification to complete.',
agreementPrefix: 'By signing in or creating an account, you agree to our',
agreementReadAndAgree: 'I have read and agree to',
agreementLabel: 'Agree to the Terms of Service and Privacy Policy',
agreementTitle: 'Terms and Privacy',
disagree: 'Disagree',
agree: 'Agree',
termsOfService: 'Terms of Service',
agreementAnd: 'and',
privacyPolicy: 'Privacy Policy',
showPassword: 'Show password',
hidePassword: 'Hide password',
recoverPassword: 'Recover password',
recoverByEmail: 'Email',
recoverByPhone: 'Phone number',
passwordResetSuccess: 'Your password has been reset. Sign in with your new password.',
passwordResetRequirements:
'Enter your {{channel}}, 6-digit verification code, and a new password with at least 8 characters.',
resetPassword: 'Reset password',
resettingPassword: 'Resetting…',
missingAuthenticationToken: 'The sign-in response did not include an authentication token.',
passwordConfirmationMismatch: 'The password entries do not match.',
emailCodeSent: 'The verification code has been sent to your email address.',
resetTokenSent: 'A password reset token has been sent to your email address.',
} satisfies TranslationShape<typeof zhCN>;
/** 门户认证域的双语资源。 */
export const authMessages = {
'zh-CN': zhCN,
'en-US': enUS,
} as const;