Skip to content

Fast, accurate OCR with correctness assessment.

8.9 KB
Raw Blame
import type { TranslationShape } from '../types';

const zhCN = {
  title: '账号安全',
  profile: '个人资料',
  profileInformation: '基本信息',
  securityInformation: '安全信息',
  accountLoadFailed: '未能获取账号信息,请重新登录后重试。',
  editProfile: '编辑资料',
  displayName: '显示名称',
  username: '用户名',
  email: '邮箱',
  phone: '手机号',
  userId: '用户 ID',
  copy: '复制',
  copiedUserId: '用户 ID 已复制',
  copyFailed: '复制失败,请手动复制',
  notSet: '未设置',
  notLinked: '未绑定',
  unnamedUser: '未命名用户',
  bindEmail: '绑定邮箱',
  bindPhone: '绑定手机号',
  rebindEmail: '换绑邮箱',
  newEmail: '新邮箱',
  currentEmailWillBeReplaced: '当前已绑定 {{email}},验证新邮箱后将替换。',
  emailBindingDescription: '绑定邮箱后即可使用「邮箱 + 密码」登录与找回密码。',
  phoneBindingDescription: '绑定后可使用手机号登录和找回密码。已绑定其他账号的手机号不能直接覆盖。',
  currentEnvironmentCode: '当前环境验证码:',
  verificationCode: '验证码',
  enterEmail: '请输入邮箱',
  enterPhone: '请输入手机号',
  enterCode: '请输入 6 位验证码',
  invalidEmail: '请输入正确的邮箱',
  invalidMainlandPhone: '请输入中国大陆手机号',
  sendCode: '发送验证码',
  sendingCode: '发送中…',
  resendIn: '{{seconds}}s 后重发',
  bindInProgress: '绑定中…',
  rebindInProgress: '换绑中…',
  confirmBinding: '确定绑定',
  confirmRebinding: '确定换绑',
  changePassword: '修改密码',
  setPassword: '设置密码',
  passwordSecurityDescription:
    '密码需至少 8 位,并包含大写字母、小写字母、数字、特殊字符中的三类。',
  passwordSetDescription: '当前账号尚未设置登录密码,设置后可使用账号密码登录',
  passwordChangeDescription: '安全性高的密码可以使账号有更高的安全性,建议您定期更换密码',
  currentPassword: '当前密码',
  newPassword: '新密码',
  confirmPassword: '确认新密码',
  enterCurrentPassword: '请输入当前密码',
  enterNewPassword: '至少 8 位,且包含三类字符',
  enterConfirmPassword: '请再次输入新密码',
  passwordRequired: '请输入当前密码',
  passwordTooShort: '新密码至少 8 位',
  passwordCharacterClasses: '新密码需包含大写字母、小写字母、数字、特殊字符中的三类',
  displayNameRequired: '昵称不能为空',
  usernameLength: '用户名长度需为 3-32 个字符',
  usernameFormat: '用户名仅允许小写字母、数字、点、下划线、连字符',
  usernameNotNumeric: '用户名不能为纯数字',
  displayNamePlaceholder: '用于展示的昵称',
  usernamePlaceholder: '用于登录的用户名',
  usernameDescription: '用户名是登录标识之一,需全局唯一;支持小写字母、数字、点、下划线、连字符。',
  signInPassword: '登录密码',
  phoneBinding: '手机绑定',
  emailBinding: '邮箱绑定',
  phoneLinkedDescription: '您当前已绑定手机号 {{phone}},可用于登录和修改密码',
  phoneUnlinkedDescription: '绑定手机号后即可使用短信验证码登录与找回密码',
  emailLinkedDescription: '您当前已绑定邮箱 {{email}},可用于「邮箱 + 密码」登录与找回密码',
  emailUnlinkedDescription: '绑定邮箱后即可使用「邮箱 + 密码」登录与找回密码',
  linked: '已绑定',
  deleteAccount: '注销账号',
  deletingAccount: '注销中…',
  deleteAccountDescription: '注销后账号将被永久停用,所有 API Key 将失效且无法恢复。',
  deleteAccountConfirmDescription:
    '注销后账号将被永久停用,所有 API Key 将失效且无法恢复。确定要注销吗?',
  confirmDeleteAccount: '确认注销',
  showValue: '显示',
  hideValue: '隐藏',
  save: '保存',
  saving: '保存中…',
  cancel: '取消',
  updateSucceeded: '个人资料已更新',
  passwordUpdated: '密码已更新',
  phoneBound: '手机号已绑定',
  emailBound: '邮箱已绑定',
  fieldRequired: '请填写此项',
  passwordMismatch: '两次输入的密码不一致',
} as const;

const enUS = {
  title: 'Account security',
  profile: 'Profile',
  profileInformation: 'Profile information',
  securityInformation: 'Security settings',
  accountLoadFailed: 'Could not load account information. Sign in again and try once more.',
  editProfile: 'Edit profile',
  displayName: 'Display name',
  username: 'Username',
  email: 'Email',
  phone: 'Phone number',
  userId: 'User ID',
  copy: 'Copy',
  copiedUserId: 'User ID copied',
  copyFailed: 'Could not copy. Copy the User ID manually.',
  notSet: 'Not set',
  notLinked: 'Not linked',
  unnamedUser: 'Unnamed user',
  bindEmail: 'Add email address',
  bindPhone: 'Add phone number',
  rebindEmail: 'Replace email address',
  newEmail: 'New email address',
  currentEmailWillBeReplaced:
    '{{email}} is currently linked. Verify the new email address to replace it.',
  emailBindingDescription:
    'After you link an email address, you can use email and password to sign in or recover your password.',
  phoneBindingDescription:
    'After you link a phone number, you can use it to sign in and recover your password. A number linked to another account cannot be overwritten.',
  currentEnvironmentCode: 'Verification code for this environment:',
  verificationCode: 'Verification code',
  enterEmail: 'Enter your email address',
  enterPhone: 'Enter your phone number',
  enterCode: 'Enter the 6-digit verification code',
  invalidEmail: 'Enter a valid email address',
  invalidMainlandPhone: 'Enter a valid Mainland China phone number',
  sendCode: 'Send code',
  sendingCode: 'Sending…',
  resendIn: 'Resend in {{seconds}}s',
  bindInProgress: 'Linking…',
  rebindInProgress: 'Replacing…',
  confirmBinding: 'Confirm link',
  confirmRebinding: 'Confirm replacement',
  changePassword: 'Change password',
  setPassword: 'Set password',
  passwordSecurityDescription:
    'Use at least 8 characters and include at least three of: uppercase letters, lowercase letters, numbers, and symbols.',
  passwordSetDescription:
    'This account does not yet have a password. Set one to enable password sign-in.',
  passwordChangeDescription:
    'A strong password improves account security. Change it regularly to keep your account protected.',
  currentPassword: 'Current password',
  newPassword: 'New password',
  confirmPassword: 'Confirm new password',
  enterCurrentPassword: 'Enter your current password',
  enterNewPassword: 'At least 8 characters with three character classes',
  enterConfirmPassword: 'Enter the new password again',
  passwordRequired: 'Enter your current password',
  passwordTooShort: 'Your new password must contain at least 8 characters',
  passwordCharacterClasses:
    'Your new password must include at least three of: uppercase letters, lowercase letters, numbers, and symbols',
  displayNameRequired: 'Enter a display name',
  usernameLength: 'Username must contain 3 to 32 characters',
  usernameFormat:
    'Username may contain lowercase letters, numbers, periods, underscores, and hyphens only',
  usernameNotNumeric: 'Username cannot contain numbers only',
  displayNamePlaceholder: 'Name displayed across the platform',
  usernamePlaceholder: 'Username used to sign in',
  usernameDescription:
    'Username is a globally unique sign-in identifier. Use lowercase letters, numbers, periods, underscores, or hyphens.',
  signInPassword: 'Sign-in password',
  phoneBinding: 'Phone number',
  emailBinding: 'Email address',
  phoneLinkedDescription:
    '{{phone}} is linked to this account and can be used to sign in or change your password.',
  phoneUnlinkedDescription:
    'Link a phone number to sign in with a verification code and recover your password.',
  emailLinkedDescription:
    '{{email}} is linked to this account and can be used with your password to sign in or recover your password.',
  emailUnlinkedDescription:
    'Link an email address to sign in with email and password or recover your password.',
  linked: 'Linked',
  deleteAccount: 'Delete account',
  deletingAccount: 'Deleting account…',
  deleteAccountDescription:
    'Your account will be permanently deactivated. All API Keys will stop working and cannot be recovered.',
  deleteAccountConfirmDescription:
    'Your account will be permanently deactivated. All API Keys will stop working and cannot be recovered. Do you want to continue?',
  confirmDeleteAccount: 'Delete account',
  showValue: 'Show value',
  hideValue: 'Hide value',
  save: 'Save changes',
  saving: 'Saving…',
  cancel: 'Cancel',
  updateSucceeded: 'Profile updated',
  passwordUpdated: 'Password updated',
  phoneBound: 'Phone number added',
  emailBound: 'Email address added',
  fieldRequired: 'This field is required',
  passwordMismatch: 'The passwords do not match',
} satisfies TranslationShape<typeof zhCN>;

/** 门户个人资料与账户安全的双语资源。 */
export const profileMessages = {
  'zh-CN': zhCN,
  'en-US': enUS,
} as const;