From 5b4d4718c274201eb67abf5e5d61865c8954ea9e Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 00:04:29 +0700 Subject: [PATCH] i18n: update add en src/modules/[chain]/block/ Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/modules/[chain]/block/[height].vue | 20 ++++++++++---------- src/modules/[chain]/block/index.vue | 16 ++++++++-------- src/plugins/i18n/locales/en.json | 15 +++++++++++++++ 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/modules/[chain]/block/[height].vue b/src/modules/[chain]/block/[height].vue index d7dc8f17..34e55542 100644 --- a/src/modules/[chain]/block/[height].vue +++ b/src/modules/[chain]/block/[height].vue @@ -66,36 +66,36 @@ onBeforeRouteUpdate(async (to, from, next) => {
#{{ target }}
-
Estimated Time: {{ format.toLocaleDate(estimateDate) }} +
{{ $t('block.estimated_time') }}: {{ format.toLocaleDate(estimateDate) }}
- + - + - + - + @@ -125,17 +125,17 @@ onBeforeRouteUpdate(async (to, from, next) => {
-

Block Header

+

{{ $t('block.block_header') }}

-

Transactions

+

{{ $t('account.transactions') }}

-

Last Commit

+

{{ $t('block.last_commit') }}

diff --git a/src/modules/[chain]/block/index.vue b/src/modules/[chain]/block/index.vue index 55921ffe..6962685b 100644 --- a/src/modules/[chain]/block/index.vue +++ b/src/modules/[chain]/block/index.vue @@ -19,12 +19,12 @@ const list = computed(() => {
Recent + @click="tab = 'blocks'">{{ $t('block.recent') }} Future + >{{ $t('block.future') }} Transactions + @click="tab = 'transactions'">{{ $t('account.transactions') }}
@@ -53,10 +53,10 @@ const list = computed(() => {
Countdown For Block:{{ $t('block.countdown_for_block') }}: {{ target }}
-

Input A New Target Block Number

+

{{ $t('block.countdown_for_block_input') }}

- +

Current Height:{{ $t('block.current_height') }}: #{{ store.latest?.block?.header.height }}
Remaining Blocks:{{ $t('block.remaining_blocks') }}: {{ remainingBlocks }}
Average Block Time:{{ $t('block.average_block_time') }}: {{ (store.blocktime / 1000).toFixed(1) }}s
- - - - + + + + @@ -83,7 +83,7 @@ const list = computed(() => { - Only show txs in recent blocks + {{ $t('block.only_tx') }} diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index f97785e5..8e737a49 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -64,5 +64,20 @@ "messages": "Messages", "time": "Time", "error": "Account does not exists on chain" + }, + "block": { + "estimated_time": "Estimated Time", + "countdown_for_block": "Countdown For Block", + "countdown_for_block_input": "Input A New Target Block Number", + "btn_update": "Update", + "current_height": "Current Height", + "remaining_blocks": "Remaining Blocks", + "average_block_time": "Average Block Time", + "block_header": "Block Header", + "last_commit": "Last Commit", + "recent": "Recent", + "future": "Future", + "fees": "Fees", + "only_tx": "Only show txs in recent blocks" } }
HeightHashMessagesFees{{ $t('account.height') }}{{ $t('account.hash') }}{{ $t('account.messages') }}{{ $t('block.fees') }}