From 488a9c2d37a54555c3429e3df68588994e856fd7 Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 00:35:27 +0700 Subject: [PATCH] i18n: update add en src/modules/[chain]/consensus/ Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/modules/[chain]/consensus/index.vue | 38 ++++++++++++------------- src/plugins/i18n/locales/en.json | 18 ++++++++++++ 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/modules/[chain]/consensus/index.vue b/src/modules/[chain]/consensus/index.vue index 5957feb2..9bd69cc4 100644 --- a/src/modules/[chain]/consensus/index.vue +++ b/src/modules/[chain]/consensus/index.vue @@ -170,7 +170,7 @@ async function update() { {{ item?.address }}/consensus_state - +
@@ -185,13 +185,13 @@ async function update() { >

{{ rate }}

- Onboard Rate + {{ $t('consensus.onboard_rate') }}
- O + {{ $t('consensus.o') }}
@@ -201,13 +201,13 @@ async function update() { >

{{ height }}

- Height + {{ $t('account.height') }}
- H + {{ $t('consensus.h') }}
@@ -217,13 +217,13 @@ async function update() { >

{{ round }}

- Round + {{ $t('consensus.round') }}
- R + {{ $t('consensus.r') }}
@@ -233,13 +233,13 @@ async function update() { >

{{ step }}

- Step + {{ $t('consensus.step') }}
- S + {{ $t('consensus.s') }}
@@ -252,10 +252,10 @@ async function update() { >

- Updated at {{ newTime || '' }} + {{ $t('consensus.updated_at') }} {{ newTime || '' }}

-
Round: {{ item.round }}
+
{{ $t('consensus.round') }}: {{ item.round }}
{{ item.prevotes_bit_array }}
@@ -277,21 +277,21 @@ async function update() {
- Proposer Signed + {{ $t('consensus.proposer_sign') }}
- Proposer Not Signed + {{ $t('consensus.proposer_not_sign') }}
- Signed + {{ $t('consensus.sign') }}
- Not Signed + {{ $t('consensus.not_sign') }}
@@ -304,17 +304,15 @@ async function update() { class="drop-shadow-md px-4 pt-2 pb-2" style="box-shadow: rgba(0, 207, 232, 0.4) 0px 6px 15px -7px" > -

Tips

+

{{ $t('consensus.tips') }}

  • - This tool is useful for validators to monitor who is onboard during - an upgrade + {{ $t('consensus.tips_description_1') }}
  • - If you want to change the default rpc endpoint. make sure that - "https" and "CORS" are enabled on your server. + {{ $t('consensus.tips_description_2') }}
diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 8e737a49..e2484488 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -79,5 +79,23 @@ "future": "Future", "fees": "Fees", "only_tx": "Only show txs in recent blocks" + }, + "consensus": { + "monitor": "Monitor", + "onboard_rate": "Onboard Rate", + "o": "O", + "h": "H", + "r": "R", + "s": "S", + "round": "Round", + "step": "Step", + "updated_at": "Updated at", + "proposer_sign": "Proposer Signed", + "proposer_not_sign": "Proposer Not Signed", + "sign": "Signed", + "not_sign": "Not Signed", + "tips": "Tips", + "tips_description_1": "This tool is useful for validators to monitor who is onboard during an upgrade", + "tips_description_2": "If you want to change the default rpc endpoint. make sure that `https` and `CORS` are enabled on your server." } }