提交 d493608d authored 作者: xuliangying's avatar xuliangying

+) 翻译

上级 1f8b7125
export default {
connectWallet: 'Link wallet',
balance: 'Balance',
placeholder1: 'Please enter the exchange quantity (must be greater than 10)',
expectedGet: 'Expected to get',
handlingFee: 'Handling fee',
transfer: 'exchange',
chain: 'chain',
title: 'title',
placeholder2: 'Please enter the transfer amount',
placeholder3: 'The exchange quantity must be greater than 10',
successfulTransfer: 'Successful transfer',
failedTransfer: 'Transfer failed',
placeholder4: 'You have selected the cross-chain access from {fromChainName} to {toChainName}. The current connection network is not the {fromChainName} network. Please switch the {fromChainName} network to complete the cross-chain operation.',
confirm: 'confirm',
}
export default {
connectWallet: 'リンクウォレット',
balance: 'バランス',
placeholder1: '交換数量を入力してください(10より大きくする必要があります)',
expectedGet: '取得する予定',
handlingFee: '手数料',
transfer: '両替',
chain: '鎖',
title: 'タイトル',
placeholder2: '振込金額を入力してください',
placeholder3: '交換数量は10より大きくなければなりません',
successfulTransfer: '転送の成功',
failedTransfer: '転送に失敗しました',
placeholder4: '{fromChainName}から{toChainName}へのクロスチェーンアクセスを選択しました。現在の接続ネットワークは{fromChainName}ネットワークではありません。{fromChainName}ネットワークを切り替えてクロスチェーン操作を完了してください。',
confirm: '確認',
}
\ No newline at end of file
export default {
connectWallet: '링크 지갑',
balance: '균형',
placeholder1: '교환 수량을 입력하세요(10보다 커야 함).',
expectedGet: '얻을 것으로 예상',
handlingFee: '수수료',
transfer: '교환',
chain: '체인',
title: '제목',
placeholder2: '이체 금액을 입력하세요.',
placeholder3: '교환 수량은 10보다 커야 합니다.',
successfulTransfer: '성공적인 전송',
failedTransfer: '전송 실패',
placeholder4: '{fromChainName}에서 {toChainName}(으)로의 교차 체인 액세스를 선택했습니다. 현재 연결 네트워크는 {fromChainName} 네트워크가 아닙니다. 교차 체인 작업을 완료하려면 {fromChainName} 네트워크를 전환하십시오.',
confirm: '확인하다',
}
\ No newline at end of file
export default {
connectWallet: '链接钱包',
balance: '余额',
placeholder1: '请输入兑换数量(需大于10)',
expectedGet: '预计获得',
handlingFee: '手续费',
transfer: '兑换',
chain: '链',
title: '标题',
placeholder2: '请输入转账金额',
placeholder3: '兑换数量需大于10',
successfulTransfer: '转账成功',
failedTransfer: '转账失败',
placeholder4: '您已选择了从{fromChainName}到{toChainName}的跨链访问,当前连接网络并非{fromChainName}网络,请切换{fromChainName}网络后完成跨链操作。',
confirm: '确认',
}
......@@ -4,19 +4,19 @@
<img src="@/assets/images/bg.png" alt="">
</div>
<div class="cannect-wallet" v-if="walletConnected">{{$hideMoreText(currentWalletAddress, 7, 0)}}</div>
<div class="cannect-wallet" v-else @click="toCannectWallet">链接钱包</div>
<div class="cannect-wallet" v-else @click="toCannectWallet">{{$t('connectWallet')}}</div>
<div class="redemption-wrap">
<div class="redemption-window hold">
<div class="redemption-tit">
<div class="redemption-name">{{holdItem.name}}</div>
<div class="redemption-over">余额{{$toRegularNumber(balance)}}</div>
<div class="redemption-over">{{$t('balance')}}{{$toRegularNumber(balance)}}</div>
</div>
<div class="redemption-money">
<div class="token-name" @click="changeToken('holdItem', holdItem.chainName)">
<img :src="holdItem.coinData.url || require(`@/assets/images/logo.png`)" alt="">
<span>{{holdItem.coinData.name}}</span>
</div>
<input type="text" placeholder="请输入兑换数量(需大于10)" v-positiveInt class="number-input">
<input type="text" :placeholder="$t('placeholder1')" v-positiveInt class="number-input">
</div>
</div>
<div class="change-img">
......@@ -26,7 +26,7 @@
<div class="redemption-window exchange">
<div class="redemption-tit">
<div class="redemption-name">{{exchangeItem.name}}</div>
<div class="redemption-over">预计获得</div>
<div class="redemption-over">{{$t('expectedGet')}}</div>
</div>
<div class="redemption-money">
<div class="token-name" @click="changeToken('exchangeItem', exchangeItem.chainName)">
......@@ -36,9 +36,9 @@
<div class="number">{{obtain}}</div>
</div>
</div>
<div class="handling-fee">手续费<span>3%</span></div>
<div class="handling-fee">{{$t('handlingFee')}}<span>3%</span></div>
</div>
<div class="convert-btn" @click="transfer">兑换</div>
<div class="convert-btn" @click="transfer">{{$t('transfer')}}</div>
<EDialog :title="'选择Token'" :visible="dialogVisible" @close="dialogVisible = false" v-if="dialogVisible">
<ul class="select-list">
<li class="select-item" v-for="(item, index) in tokenList" :key="index" @click="changeSelect(index,item)" :class="selectIndex === index ? 'active' : ''">
......@@ -191,7 +191,7 @@ export default {
let bscChainIds = this.tokenListBSC.map(item => item.chainId);
if (tkmChainIds.includes(chainId - 0)) {
return `Thinkium ${chainId}#`
return `Thinkium ${chainId}#${this.$t('chain')}`
} else if (bscChainIds.includes(chainId - 0)) {
return `BSC`
} else {
......@@ -203,8 +203,9 @@ export default {
let toChainName = this.formateChainName(this.exchangeItem.coinData.chainId);
// let currentChainName = this.formateChainName(this.chainId);
this.$dialog.alert({
title: '标题',
message: `您已选择了从${fromChainName}${toChainName}的跨链访问,当前连接网络并非${fromChainName}网络,请切换${fromChainName}网络后完成跨链操作。`,
title: this.$t('title'),
message: this.$t('placeholder4', { fromChainName, toChainName, fromChainName, fromChainName }),
confirmButtonText: this.$t('confirm')
}).then(() => {
// on close
});
......@@ -262,8 +263,9 @@ export default {
}
if (!value) {
this.$dialog.alert({
title: '标题',
message: '请输入转账金额',
title: this.$t('title'),
message: this.$t('placeholder2'),
confirmButtonText: this.$t('confirm')
}).then(() => {
// on close
});
......@@ -271,8 +273,9 @@ export default {
}
if (10 > value - 0) {
this.$dialog.alert({
title: '标题',
message: '兑换数量需大于10',
title: this.$t('title'),
message: this.$t('placeholder3'),
confirmButtonText: this.$t('confirm')
}).then(() => {
// on close
});
......@@ -292,11 +295,11 @@ export default {
tokenAddress: holdItem.coinData.contractAddress,
});
}
this.$notify({ type: 'success', message: '转账成功' });
this.$notify({ type: 'success', message: this.$t('successfulTransfer') });
this.refreshBalance();
} catch (err) {
this.$notify({ type: 'warning', message: '转账失败' });
this.$notify({ type: 'warning', message: this.$t('failedTransfer') });
}
this.pageLoading = false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论