From 3111b922fac53cded84e8f9074629134f5f4ccf7 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 15 Dec 2025 00:50:44 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=B3=95=E5=B8=81?= =?UTF-8?q?=E5=85=85=E5=80=BC=E5=92=8C=E6=8F=90=E7=8E=B0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=9A=84=E5=9B=BD=E9=99=85=E5=8C=96=E6=94=AF=E6=8C=81=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.json | 35 +++++++++++++++++++ src/locales/zh-CN.json | 35 +++++++++++++++++++ src/views/deposit/fiat.vue | 20 ++++++----- .../user/components/recharge-channel.vue | 9 ++--- src/views/withdraw/index.vue | 30 ++++++++-------- 5 files changed, 102 insertions(+), 27 deletions(-) diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 02c6a97..bb5c1bb 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -6,6 +6,41 @@ "transfer": "Transfer", "balance": "Balance" }, + "recharge": { + "channel": { + "chainRecharge": "Chain recharge", + "chainRechargeDesc": "Transfer crypto from on-chain wallet or exchange.", + "fiatCurrency": "Fiat currency", + "fiatCurrencyDesc": "Transfer fiat currency through bank or other financial institutions." + }, + "fiat": { + "title": "Fiat Recharge", + "bankAccount": "Recharge bank card account", + "chooseCurrency": "Choose Currency", + "amount": "Amount", + "enterAmount": "Enter the amount", + "validAmountError": "Please enter a valid amount.", + "note": "Please make sure to enter the correct amount. After submission, the funds will be credited to your account after review in the background.", + "submit": "Submit", + "submitSuccess": "Submission successful!" + } + }, + "withdraw": { + "title": "Withdraw", + "chooseCurrency": "Choose Currency", + "chooseMethod": "Choose Withdraw Method", + "amount": "Amount", + "enterAmountMax": "Enter the amount (Max: {{amount}})", + "validAmountError": "Please enter a valid amount.", + "bankAccountId": "Bank Account ID", + "enterBankAccountId": "Enter the bank account ID", + "validBankAccountError": "Please enter a valid bank account ID.", + "chooseChain": "Choose Chain", + "cryptoAddress": "Crypto Address", + "enterCryptoAddress": "Enter the crypto address", + "validCryptoAddressError": "Please enter a valid crypto address.", + "submit": "Submit" + }, "asset": { "issue": { "issuingAsset": "Issuing Asset", diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index e80fbe8..df6041b 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -6,6 +6,41 @@ "transfer": "转账", "balance": "余额" }, + "recharge": { + "channel": { + "chainRecharge": "链上充值", + "chainRechargeDesc": "从链上钱包或交易所转入加密货币", + "fiatCurrency": "法币充值", + "fiatCurrencyDesc": "通过银行或其他金融机构转入法币" + }, + "fiat": { + "title": "法币充值", + "bankAccount": "充值银行卡账户", + "chooseCurrency": "选择货币", + "amount": "金额", + "enterAmount": "请输入金额", + "validAmountError": "请输入有效的金额。", + "note": "请确保输入正确的金额。提交后,资金将在后台审核后计入您的账户。", + "submit": "提交", + "submitSuccess": "提交成功!" + } + }, + "withdraw": { + "title": "提现", + "chooseCurrency": "选择货币", + "chooseMethod": "选择提现方式", + "amount": "金额", + "enterAmountMax": "请输入金额(最大:{amount})", + "validAmountError": "请输入有效的金额。", + "bankAccountId": "银行账户ID", + "enterBankAccountId": "请输入银行账户ID", + "validBankAccountError": "请输入有效的银行账户ID。", + "chooseChain": "选择链", + "cryptoAddress": "加密货币地址", + "enterCryptoAddress": "请输入加密货币地址", + "validCryptoAddressError": "请输入有效的加密货币地址。", + "submit": "提交" + }, "asset": { "issue": { "issuingAsset": "发行资产", diff --git a/src/views/deposit/fiat.vue b/src/views/deposit/fiat.vue index b656cbd..aa6687b 100644 --- a/src/views/deposit/fiat.vue +++ b/src/views/deposit/fiat.vue @@ -4,6 +4,8 @@ import { toastController } from "@ionic/vue"; import { client } from "@/api"; import { AssetCodeEnum, PaymentChannelEnum } from "@/api/enum"; +const { t } = useI18n(); + const form = ref({ amount: "", assetCode: AssetCodeEnum.USDT, @@ -32,7 +34,7 @@ async function onSubmit() { const { data, status } = await client.api.deposit.fiat.post(form.value); if (status === 200) { const toast = await toastController.create({ - message: "Submission successful!", + message: t("recharge.fiat.submitSuccess"), duration: 1500, position: "bottom", }); @@ -49,13 +51,13 @@ async function onSubmit() { - Fiat Recharge + {{ t("recharge.fiat.title") }}
- Choose Currency + {{ t("recharge.fiat.chooseCurrency") }} @@ -82,19 +84,19 @@ async function onSubmit() { - Please make sure to enter the correct amount. After submission, the funds will be credited to your account after review in the background. + {{ t("recharge.fiat.note") }} - Submit + {{ t("recharge.fiat.submit") }}
diff --git a/src/views/user/components/recharge-channel.vue b/src/views/user/components/recharge-channel.vue index d941c97..2c4a498 100644 --- a/src/views/user/components/recharge-channel.vue +++ b/src/views/user/components/recharge-channel.vue @@ -3,6 +3,7 @@ const emit = defineEmits<{ (e: "close"): void; }>(); +const { t } = useI18n(); const router = useRouter(); async function handleFiatRecharge() { @@ -16,9 +17,9 @@ async function handleFiatRecharge() {
-

Chain recharge

+

{{ t("recharge.channel.chainRecharge") }}

- Transfer crypto from on-chain wallet or exchange. + {{ t("recharge.channel.chainRechargeDesc") }}

@@ -27,9 +28,9 @@ async function handleFiatRecharge() {
-

Fiat currency

+

{{ t("recharge.channel.fiatCurrency") }}

- Transfer fiat currency through bank or other financial institutions. + {{ t("recharge.channel.fiatCurrencyDesc") }}

diff --git a/src/views/withdraw/index.vue b/src/views/withdraw/index.vue index dfb6dff..093809f 100644 --- a/src/views/withdraw/index.vue +++ b/src/views/withdraw/index.vue @@ -4,6 +4,8 @@ import { toastController } from "@ionic/vue"; import { client, safeClient } from "@/api"; import { AssetCodeEnum, ChainEnum, WithdrawMethodEnum } from "@/api/enum"; +const { t } = useI18n(); + const amountInputInst = useTemplateRef("amountInputInst"); const [form, resetForm] = useResetRef({ assetCode: AssetCodeEnum.USDT, @@ -51,14 +53,14 @@ async function onSubmit() { - Withdraw + {{ t("withdraw.title") }}
- Choose Currency + {{ t("withdraw.chooseCurrency") }} @@ -69,7 +71,7 @@ async function onSubmit() { - Choose Withdraw Method + {{ t("withdraw.chooseMethod") }} @@ -81,11 +83,11 @@ async function onSubmit() { - Submit + {{ t("withdraw.submit") }}