Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Jan 3, 2025
1 parent 2c6bb62 commit bea29aa
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
10 changes: 6 additions & 4 deletions packages/web/i18n/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,15 @@
"support.user.Price": "Pricing",
"support.user.User self info": "Profile",
"support.user.auth.Sending Code": "Sending Code",
"support.user.auth.get_code": "Get Verification Code",
"support.user.auth.get_code_again": "s Get Again",
"support.user.captcha_placeholder": "Please enter the verification code",
"support.user.info.notification_receiving_hint": "Notification reception",
"support.user.info.bind_notification_hint": "Please bind the notification receiving account to ensure that you can receive notifications such as package expiration reminders, etc., to ensure the normal operation of your service.",
"support.user.info.verification_code": "Verification Code",
"support.user.info.code_required": "Verification code cannot be empty",
"support.user.info.bind_notification_error": "Abnormal binding notification account",
"support.user.info.bind_notification_hint": "Please bind the notification receiving account to ensure that you can receive notifications such as package expiration reminders, etc., to ensure the normal operation of your service.",
"support.user.info.bind_notification_success": "Binding notification account successful",
"support.user.info.code_required": "Verification code cannot be empty",
"support.user.info.notification_receiving_hint": "Notification reception",
"support.user.info.verification_code": "Verification Code",
"support.user.inform.System message": "System Message",
"support.user.login.Email": "Email",
"support.user.login.Github": "GitHub Login",
Expand Down
2 changes: 0 additions & 2 deletions packages/web/i18n/en/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"password.confirm": "Confirm Password",
"password.email_phone_error": "Invalid Email/Phone Number Format",
"password.email_phone_void": "Email/Phone Number Cannot Be Empty",
"password.get_code": "Get Verification Code",
"password.get_code_again": "Get Again in s",
"password.not_match": "Passwords Do Not Match",
"password.password_condition": "Password must be between 4 and 20 characters",
"password.password_required": "Password Cannot Be Empty",
Expand Down
12 changes: 7 additions & 5 deletions packages/web/i18n/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1040,14 +1040,16 @@
"support.user.Price": "计费标准",
"support.user.User self info": "个人信息",
"support.user.auth.Sending Code": "正在发送",
"support.user.auth.get_code": "获取验证码",
"support.user.auth.get_code_again": "s后重新获取",
"support.user.captcha_placeholder": "请输入验证码",
"support.user.inform.System message": "系统消息",
"support.user.info.notification_receiving_hint": "通知接收",
"support.user.info.bind_notification_error": "绑定通知账号异常",
"support.user.info.bind_notification_hint": "请绑定通知接收账号,以确保您能正常接收套餐过期提醒等通知,保障您的服务正常运行。",
"support.user.info.verification_code": "验证码",
"support.user.info.code_required": "验证码不能为空",
"support.user.info.bind_notification_success": "绑定通知账号成功",
"support.user.info.bind_notification_error": "绑定通知账号异常",
"support.user.info.code_required": "验证码不能为空",
"support.user.info.notification_receiving_hint": "通知接收",
"support.user.info.verification_code": "验证码",
"support.user.inform.System message": "系统消息",
"support.user.login.Email": "邮箱",
"support.user.login.Github": "GitHub 登录",
"support.user.login.Google": "Google 登录",
Expand Down
2 changes: 0 additions & 2 deletions packages/web/i18n/zh-CN/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"password.confirm": "确认密码",
"password.email_phone_error": "邮箱/手机号格式错误",
"password.email_phone_void": "邮箱/手机号不能为空",
"password.get_code": "获取验证码",
"password.get_code_again": "s后重新获取",
"password.not_match": "两次密码不一致",
"password.password_condition": "密码最少 4 位最多 20 位",
"password.password_required": "密码不能为空",
Expand Down
12 changes: 7 additions & 5 deletions packages/web/i18n/zh-Hant/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1037,14 +1037,16 @@
"support.user.Price": "計費標準",
"support.user.User self info": "個人資訊",
"support.user.auth.Sending Code": "正在傳送驗證碼",
"support.user.auth.get_code": "取得驗證碼",
"support.user.auth.get_code_again": "秒後重新取得",
"support.user.captcha_placeholder": "請輸入驗證碼",
"support.user.inform.System message": "系統訊息",
"support.user.info.notification_receiving_hint": "通知接收",
"support.user.info.bind_notification_error": "綁定通知帳號異常",
"support.user.info.bind_notification_hint": "請綁定通知接收帳號,確保您能正常接收套餐過期提醒等通知,保障您的服務正常運作。",
"support.user.info.verification_code": "驗證碼",
"support.user.info.code_required": "驗證碼不能為空",
"support.user.info.bind_notification_success": "綁定通知帳號成功",
"support.user.info.bind_notification_error": "綁定通知帳號異常",
"support.user.info.code_required": "驗證碼不能為空",
"support.user.info.notification_receiving_hint": "通知接收",
"support.user.info.verification_code": "驗證碼",
"support.user.inform.System message": "系統訊息",
"support.user.login.Email": "電子郵件",
"support.user.login.Github": "GitHub 登入",
"support.user.login.Google": "Google 登入",
Expand Down
2 changes: 0 additions & 2 deletions packages/web/i18n/zh-Hant/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"password.confirm": "確認密碼",
"password.email_phone_error": "電子郵件/手機號碼格式錯誤",
"password.email_phone_void": "電子郵件/手機號碼不能空白",
"password.get_code": "取得驗證碼",
"password.get_code_again": "秒後重新取得",
"password.not_match": "兩次輸入的密碼不相符",
"password.password_condition": "密碼長度需介於 4 至 20 字元之間",
"password.password_required": "密碼不能空白",
Expand Down
6 changes: 3 additions & 3 deletions projects/app/src/web/support/user/hooks/useSendCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export const useSendCode = ({ type }: { type: `${UserAuthTypeEnum}` }) => {
const sendCodeText = useMemo(() => {
if (codeSending) return t('common:support.user.auth.Sending Code');
if (codeCountDown >= 10) {
return `${codeCountDown}${t('user:password.get_code_again')}`;
return `${codeCountDown}${t('common:support.user.auth.get_code_again')}`;
}
if (codeCountDown > 0) {
return `0${codeCountDown}${t('user:password.get_code_again')}`;
return `0${codeCountDown}${t('common:support.user.auth.get_code_again')}`;
}
return t('user:password.get_code');
return t('common:support.user.auth.get_code');
}, [codeCountDown, codeSending, t]);

const {
Expand Down

0 comments on commit bea29aa

Please sign in to comment.