i18n: update add en src/modules/[chain]/tx/
Author: Salman Wahib <hello@sxlmnwb.xyz> Co-authored-by: liangping <18786721@qq.com>
This commit is contained in:
parent
687faf0e3b
commit
a4fa86fc63
@ -26,16 +26,16 @@ const messages = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow mb-4">
|
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow mb-4">
|
||||||
<h2 class="card-title truncate mb-2">Summary</h2>
|
<h2 class="card-title truncate mb-2">{{ $t('tx.title') }}</h2>
|
||||||
<div class="overflow-auto-x">
|
<div class="overflow-auto-x">
|
||||||
<table class="table text-sm">
|
<table class="table text-sm">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Tx Hash</td>
|
<td>{{ $t('tx.tx_hash') }}</td>
|
||||||
<td>{{ tx.tx_response.txhash }}</td>
|
<td>{{ tx.tx_response.txhash }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Height</td>
|
<td>{{ $t('account.height') }}</td>
|
||||||
<td>
|
<td>
|
||||||
<RouterLink :to="`/${props.chain}/block/${tx.tx_response.height}`" class="text-primary dark:invert">{{ tx.tx_response.height
|
<RouterLink :to="`/${props.chain}/block/${tx.tx_response.height}`" class="text-primary dark:invert">{{ tx.tx_response.height
|
||||||
}}
|
}}
|
||||||
@ -43,7 +43,7 @@ const messages = computed(() => {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Status</td>
|
<td>{{ $t('staking.status') }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="text-xs truncate relative py-2 px-4 w-fit mr-2 rounded" :class="`text-${tx.tx_response.code === 0 ? 'success' : 'error'
|
<div class="text-xs truncate relative py-2 px-4 w-fit mr-2 rounded" :class="`text-${tx.tx_response.code === 0 ? 'success' : 'error'
|
||||||
}`">
|
}`">
|
||||||
@ -54,7 +54,7 @@ const messages = computed(() => {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Time</td>
|
<td>{{ $t('account.time') }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{ format.toLocaleDate(tx.tx_response.timestamp) }} ({{
|
{{ format.toLocaleDate(tx.tx_response.timestamp) }} ({{
|
||||||
format.toDay(tx.tx_response.timestamp, 'from')
|
format.toDay(tx.tx_response.timestamp, 'from')
|
||||||
@ -62,13 +62,13 @@ const messages = computed(() => {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Gas</td>
|
<td>{{ $t('tx.gas') }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{ tx.tx_response.gas_used }} / {{ tx.tx_response.gas_wanted }}
|
{{ tx.tx_response.gas_used }} / {{ tx.tx_response.gas_wanted }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Fee</td>
|
<td>{{ $t('tx.fee') }}</td>
|
||||||
<td>
|
<td>
|
||||||
{{
|
{{
|
||||||
format.formatTokens(
|
format.formatTokens(
|
||||||
@ -80,7 +80,7 @@ const messages = computed(() => {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Memo</td>
|
<td>{{ $t('tx.memo') }}</td>
|
||||||
<td>{{ tx.tx.body.memo }}</td>
|
<td>{{ tx.tx.body.memo }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -90,14 +90,14 @@ const messages = computed(() => {
|
|||||||
|
|
||||||
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow mb-4">
|
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow mb-4">
|
||||||
<h2 class="card-title truncate mb-2">
|
<h2 class="card-title truncate mb-2">
|
||||||
Messages: ({{ messages.length }})
|
{{ $t('account.messages') }}: ({{ messages.length }})
|
||||||
</h2>
|
</h2>
|
||||||
<div v-for="(msg, i) in messages">
|
<div v-for="(msg, i) in messages">
|
||||||
<div class="border border-slate-400 rounded-md mt-4">
|
<div class="border border-slate-400 rounded-md mt-4">
|
||||||
<DynamicComponent :value="msg" />
|
<DynamicComponent :value="msg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="messages.length === 0">No messages</div>
|
<div v-if="messages.length === 0">{{ $t('tx.no_messages') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow">
|
<div v-if="tx.tx_response" class="bg-base-100 px-4 pt-3 pb-4 rounded shadow">
|
||||||
|
@ -218,5 +218,13 @@
|
|||||||
"text_3_1": "If you are resetting node, run",
|
"text_3_1": "If you are resetting node, run",
|
||||||
"text_3_2": "before you start the daemon",
|
"text_3_2": "before you start the daemon",
|
||||||
"text_title_3": "To make state sync works, we can enable snapshot in $DAEMON_HOME/config/app.toml"
|
"text_title_3": "To make state sync works, we can enable snapshot in $DAEMON_HOME/config/app.toml"
|
||||||
|
},
|
||||||
|
"tx": {
|
||||||
|
"title": "Summary",
|
||||||
|
"tx_hash": "Tx Hash",
|
||||||
|
"gas": "Gas",
|
||||||
|
"fee": "Fee",
|
||||||
|
"memo": "Memo",
|
||||||
|
"no_messages": "No messages"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user