From aa13bc88cbf54600a8b64d7d9f9875eda7b4c763 Mon Sep 17 00:00:00 2001 From: sxlmnwb Date: Mon, 19 Jun 2023 18:48:57 +0700 Subject: [PATCH 1/7] i18n: update add en src/pages/ - modified src/layouts/components/DefaultLayout.vue - ecosystem > not enable - favorite - all_blockchains Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/layouts/components/DefaultLayout.vue | 4 ++-- src/pages/[...all].vue | 8 ++++---- src/pages/index.vue | 10 +++++----- src/plugins/i18n/locales/en.json | 24 ++++++++++++++++-------- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 493b81d3..6a1d9939 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -206,7 +206,7 @@ function selected(route: any, nav: NavLink) {

- {{ $t('index.slogan') }} + {{ $t('pages.slogan') }}

-

Cosmos Ecosystem Blockchains 🚀

+

{{ $t('pages.description') }}

- +
diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index ecfaf020..25d8381c 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -12,15 +12,23 @@ "ibc": "IBC", "consensus": "Consensus", "supply": "Supply", - "account": "Accounts" + "account": "Accounts", + "ecosystem": "Ecosystem", + "favorite": "Favorite", + "add_to_favorite": "Add to favorite", + "all_blockchains": "All Blockchain", + "sponsors": "Sponsors", + "links": "Links" }, - "index": { + "pages": { + "title": "Ping Dashboard", + "title_all": "404", + "tag": "Beta", + "tag_all": "Page Not Found", "slogan": "Ping Dashboard is not just an explorer but also a wallet and more ... 🛠", + "description": "Cosmos Ecosystem Blockchains 🚀", "search_placeholder": "Search Chain", - "add_to_favorite": "Add to favorite" - }, - "Ecosystem": "Ecosystem", - "All Blockchains": "All Blockchain", - "Favorite": "Favorite" - + "description_all": "We couldn't find the page you are looking for.", + "btn_index": "Back to Home" + } } From 4257406286e0e8be22c9f402df0a06099046b452 Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Tue, 20 Jun 2023 01:53:00 +0700 Subject: [PATCH 2/7] i18n: update add en src/modules/[chain]/account/ Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/modules/[chain]/account/[address].vue | 58 +++++++++++------------ src/modules/[chain]/account/index.vue | 10 ++-- src/plugins/i18n/locales/en.json | 34 +++++++++++++ 3 files changed, 68 insertions(+), 34 deletions(-) diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index d65eb557..5504be06 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -138,7 +138,7 @@ function updateEvent() {
-

Address:

+

{{ $t('account.address') }}:

{{ address }}
@@ -147,14 +147,14 @@ function updateEvent() {
-

Assets

+

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

{{ $t('account.btn_send') }} {{ $t('account.btn_transfer') }}
@@ -319,7 +319,7 @@ function updateEvent() {
- Total Value: ${{ totalValue }} + {{ $t('account.total_value') }}: ${{ totalValue }}
@@ -328,19 +328,19 @@ function updateEvent() {
-

Delegations

+

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

{{ $t('account.btn_delegate') }} {{ $t('account.btn_withdraw') }}
@@ -348,14 +348,14 @@ function updateEvent() { - - - - + + + + - + @@ -435,15 +435,15 @@ function updateEvent() { class="bg-base-100 px-4 pt-3 pb-4 rounded mb-4 shadow" v-if="unbonding && unbonding.length > 0" > -

Unbonding Delegations

+

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

ValidatorDelegationRewardsAction{{ $t('account.validator') }}{{ $t('account.delegation') }}{{ $t('account.rewards') }}{{ $t('account.action') }}
No Delegations
{{ $t('account.no_delegations') }}
delegate{{ $t('account.btn_delegate') }} {{ $t('account.btn_redelegate') }} {{ $t('account.btn_unbond') }}
- - - - + + + + @@ -494,19 +494,19 @@ function updateEvent() {
-

Transactions

+

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

Creation HeightInitial BalanceBalanceCompletion Time{{ $t('account.creation_height') }}{{ $t('account.initial_balance') }}{{ $t('account.balance') }}{{ $t('account.completion_time') }}
- - - - + + + + - +
HeightHashMessagesTime{{ $t('account.height') }}{{ $t('account.hash') }}{{ $t('account.messages') }}{{ $t('account.time') }}
No Transactions
{{ $t('account.no_transactions') }}
{{ @@ -538,9 +538,9 @@ function updateEvent() {
-

Account

+

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

-
Account does not exists on chain
+
{{ $t('account.error') }}
diff --git a/src/modules/[chain]/account/index.vue b/src/modules/[chain]/account/index.vue index 9425f532..fe1ecb08 100644 --- a/src/modules/[chain]/account/index.vue +++ b/src/modules/[chain]/account/index.vue @@ -57,11 +57,11 @@ function showPubkey(v: any) { - - - - - + + + + + diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 25d8381c..f97785e5 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -30,5 +30,39 @@ "search_placeholder": "Search Chain", "description_all": "We couldn't find the page you are looking for.", "btn_index": "Back to Home" + }, + "account": { + "type": "Type", + "address": "Address", + "acc": "Account", + "acc_num": "Account Number", + "sequence": "Sequence", + "pub_key": "Public Key", + "assets": "Assets", + "btn_send": "Send", + "btn_transfer": "Transfer", + "total_value": "Total Value", + "delegations": "Delegations", + "no_delegations": "No Delegations", + "btn_delegate": "Delegate", + "btn_redelegate": "Redelegate", + "btn_withdraw": "Withdraw", + "btn_unbond": "Unbond", + "validator": "Validator", + "delegation": "Delegation", + "rewards": "Rewards", + "action": "Action", + "unbonding_delegations": "Unbonding Delegations", + "creation_height": "Creation Height", + "initial_balance": "Initial Balance", + "balance": "Balance", + "completion_time": "Completion Time", + "transactions": "Transactions", + "no_transactions": "No Transactions", + "height": "Height", + "hash": "Hash", + "messages": "Messages", + "time": "Time", + "error": "Account does not exists on chain" } } From 5b4d4718c274201eb67abf5e5d61865c8954ea9e Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 00:04:29 +0700 Subject: [PATCH 3/7] 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) }}
TypeAddressAccount NumberSequencePublic Key{{ $t('account.type') }}{{ $t('account.address') }}{{ $t('account.acc_num') }}{{ $t('account.sequence') }}{{ $t('account.pub_key') }}
- + - + - + - + @@ -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" } } From 488a9c2d37a54555c3429e3df68588994e856fd7 Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 00:35:27 +0700 Subject: [PATCH 4/7] 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." } } From 665ea0c17be2684910df930e21a421ff0beb5b97 Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 01:08:00 +0700 Subject: [PATCH 5/7] i18n: update add en src/modules/[chain]/cosmwasm/ const radioContent = [}; > not changes Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- .../[chain]/cosmwasm/[code_id]/contracts.vue | 30 +++++++++---------- src/modules/[chain]/cosmwasm/index.vue | 14 ++++----- src/plugins/i18n/locales/en.json | 22 ++++++++++++++ 3 files changed, 43 insertions(+), 23 deletions(-) diff --git a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue index 383fcf6e..ea566771 100644 --- a/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue +++ b/src/modules/[chain]/cosmwasm/[code_id]/contracts.vue @@ -113,14 +113,14 @@ const result = ref('');

- Contract List of Code: {{ props.code_id }} + {{ $t('cosmwasm.contract_list_code') }}: {{ props.code_id }}

HeightHashMessagesFees{{ $t('account.height') }}{{ $t('account.hash') }}{{ $t('account.messages') }}{{ $t('block.fees') }}
- - + + @@ -135,34 +135,34 @@ const result = ref(''); @click="showInfo(v)" for="modal-contract-detail" class="btn btn-primary btn-xs text-xs mr-2" - >Contract{{ $t('cosmwasm.btn_contract') }}{{ $t('cosmwasm.btn_funds') }} @@ -182,7 +182,7 @@ const result = ref(''); codeId: props.code_id, }) " - >Instantiate Contract{{ $t('cosmwasm.instantiate_contract') }} @@ -193,7 +193,7 @@ const result = ref('');
Contract ListActions{{ $t('cosmwasm.contract_list') }}{{ $t('account.action') }}