feat: 添加法币充值和提现功能的国际化支持,更新相关组件文本

This commit is contained in:
2025-12-15 00:50:44 +07:00
parent f30fda5002
commit 3111b922fa
5 changed files with 102 additions and 27 deletions

View File

@@ -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() {
<div class="flex items-center gap-2.5">
<i-ic-baseline-downloading class="text-2xl" />
<ion-label class="flex-1">
<h2>Chain recharge</h2>
<h2>{{ t("recharge.channel.chainRecharge") }}</h2>
<p class="w-[80%] text-sm">
Transfer crypto from on-chain wallet or exchange.
{{ t("recharge.channel.chainRechargeDesc") }}
</p>
</ion-label>
<i-ic-round-arrow-forward-ios class="ml-auto text-text-400" />
@@ -27,9 +28,9 @@ async function handleFiatRecharge() {
<div class="flex items-center gap-2.5" @click="handleFiatRecharge">
<i-ic-baseline-data-saver-off class="text-2xl" />
<ion-label class="flex-1">
<h2>Fiat currency</h2>
<h2>{{ t("recharge.channel.fiatCurrency") }}</h2>
<p class="w-[80%] text-sm">
Transfer fiat currency through bank or other financial institutions.
{{ t("recharge.channel.fiatCurrencyDesc") }}
</p>
</ion-label>
<i-ic-round-arrow-forward-ios class="ml-auto text-text-400" />