diff --git a/frontend/desktop/public/locales/en/common.json b/frontend/desktop/public/locales/en/common.json index ff258937107..55132c941e7 100644 --- a/frontend/desktop/public/locales/en/common.json +++ b/frontend/desktop/public/locales/en/common.json @@ -189,7 +189,7 @@ "realName_verification": "Real Name Verification", "realname_auth_now": "Click to verify your name", "realname_auth_reminder": "Real-name authentication reminder", - "realname_auth_reminder_desc": "Real-name verification is required for regions in China. Without real-name verification, top-up will be restricted. Successful real-name verification will be rewarded with a 5 yuan Sealos balance.", + "realname_auth_reminder_desc": "Real-name verification is required for regions in China. Without real-name verification, top-up will be restricted. Successful real-name verification will be rewarded with a {{reward}} Sealos balance.", "realname_auth_tips_a": "1. Please ensure that the name, ID number and mobile phone number filled in are consistent.", "realname_auth_tips_b": "2. The number segments provided by some virtual operators may not pass verification. Please apply for a work order and pass manual verification.", "realname_info": "RealName", diff --git a/frontend/desktop/public/locales/zh/common.json b/frontend/desktop/public/locales/zh/common.json index 2dd28b4245d..3637b703759 100644 --- a/frontend/desktop/public/locales/zh/common.json +++ b/frontend/desktop/public/locales/zh/common.json @@ -185,7 +185,7 @@ "realName_verification": "实名认证", "realname_auth_now": "点击进行实名", "realname_auth_reminder": "实名认证提醒", - "realname_auth_reminder_desc": "国内可用区需要实名认证,未实名认证将会被限制充值,实名认证成功奖励sealos余额5元", + "realname_auth_reminder_desc": "国内可用区需要实名认证,未实名认证将会被限制充值,实名认证成功奖励 Sealos 余额 {{reward}} 元。", "realname_auth_tips_a": "1、请确保所填写的姓名、身份证号码和手机号码信息一致。", "realname_auth_tips_b": "2、部分虚拟运营商提供的号段可能无法验证通过,请申请工单通过人工协助认证。", "realname_info": "实名信息", diff --git a/frontend/desktop/src/components/account/RealNameModal.tsx b/frontend/desktop/src/components/account/RealNameModal.tsx index f955c4fa8da..ba31a37503b 100644 --- a/frontend/desktop/src/components/account/RealNameModal.tsx +++ b/frontend/desktop/src/components/account/RealNameModal.tsx @@ -46,6 +46,8 @@ import { DeleteIcon, PictureIcon, UploadIcon, AttachmentIcon } from '../icons'; export function useRealNameAuthNotification(props?: UseToastOptions) { const { t } = useTranslation(); + const { commonConfig } = useConfigStore((s) => s); + const realNameReward = commonConfig?.realNameReward; const realNameAuthNotification = useToast({ position: 'top', @@ -108,7 +110,9 @@ export function useRealNameAuthNotification(props?: UseToastOptions) { lineHeight="20px" letterSpacing="0.25px" > - {t('common:realname_auth_reminder_desc')} + {t('common:realname_auth_reminder_desc', { + reward: realNameReward + })}