From 3b12487dc30d4e7ebfd2c98455b15552bcfe94f5 Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 11:18:34 +0700 Subject: [PATCH] i18n: update add en src/modules/[chain]/staking/ Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/modules/[chain]/staking/[validator].vue | 56 ++++++++++----------- src/modules/[chain]/staking/index.vue | 37 +++++++------- src/plugins/i18n/locales/en.json | 37 ++++++++++++++ 3 files changed, 84 insertions(+), 46 deletions(-) diff --git a/src/modules/[chain]/staking/[validator].vue b/src/modules/[chain]/staking/[validator].vue index 0520f816..3ba847e0 100644 --- a/src/modules/[chain]/staking/[validator].vue +++ b/src/modules/[chain]/staking/[validator].vue @@ -193,16 +193,16 @@ const tipMsg = computed(() => { validator_address: v.operator_address, }) " - >Delegate{{ $t('account.btn_delegate') }}
@@ -269,7 +269,7 @@ const tipMsg = computed(() => {

{{ format.formatToken(selfBonded.balance) }} ({{ selfRate }})

- Self Bonded + {{ $t('staking.self_bonded') }}
@@ -285,7 +285,7 @@ const tipMsg = computed(() => {

{{ v.min_self_delegation }} {{ staking.params.bond_denom }}

- Min Self Delegation: + {{ $t('staking.min_self') }}
@@ -297,7 +297,7 @@ const tipMsg = computed(() => {

{{ apr }}

- Annual Profit + {{ $t('staking.annual_profit') }}
@@ -310,7 +310,7 @@ const tipMsg = computed(() => {

{{ v.unbonding_height }}

- Unbonding Height + {{ $t('staking.unbonding_height') }}
@@ -324,7 +324,7 @@ const tipMsg = computed(() => {

{{ format.toDay(v.unbonding_time, 'from') }}

-

- Unbonding Time + {{ $t('staking.unbonding_time') }}
@@ -339,14 +339,14 @@ const tipMsg = computed(() => {
- Commissions & Rewards + {{ $t('staking.commissions_&_rewards') }}
-
Commissions
+
{{ $t('staking.commissions') }}
{ > {{ format.formatToken2(i) }}
-
Outstanding Rewards
+
{{ $t('staking.outstanding') }} {{ $t('account.rewards') }}
{ validator_address: v.operator_address, }) " - >Withdraw{{ $t('account.btn_withdraw') }}
- Addresses + {{ $t('staking.addresses') }}
-
Account +
{{ $t('staking.account_addr') }} {
-
Operator Address +
{{ $t('staking.operator_addr') }} {
-
Hex Address +
{{ $t('staking.hex_addr') }} {
{{ addresses.hex }}
-
Signer Address +
{{ $t('staking.signer_addr') }} {
{{ addresses.valCons }}
-
Consensus Public Key +
{{ $t('staking.consensus_pub_key') }} {
-
Transactions
+
{{ $t('account.transactions') }}
- - - + + + diff --git a/src/modules/[chain]/staking/index.vue b/src/modules/[chain]/staking/index.vue index 7d96ff15..5d7b01bf 100644 --- a/src/modules/[chain]/staking/index.vue +++ b/src/modules/[chain]/staking/index.vue @@ -196,7 +196,7 @@ loadAvatars();
{{ format.percent(mintStore.inflation) }}
-
Infalation
+
{{ $t('staking.infalation') }}
@@ -208,7 +208,7 @@ loadAvatars();
{{ formatSeconds(staking.params?.unbonding_time) }}
-
Unbonding Time
+
{{ $t('staking.unbonding_time') }}
@@ -220,7 +220,7 @@ loadAvatars();
{{ format.percent(slashing.slash_fraction_double_sign) }}
-
Double Sign Slashing
+
{{ $t('staking.double_sign_slashing') }}
@@ -232,7 +232,7 @@ loadAvatars();
{{ format.percent(slashing.slash_fraction_downtime) }}
-
Downtime Slashing
+
{{ $t('staking.downtime_slashing') }}
@@ -244,19 +244,19 @@ loadAvatars(); class="tab text-gray-400" :class="{ 'tab-active': tab === 'featured' }" @click="tab = 'featured'" - >Popular{{ $t('staking.popular') }}Active{{ $t('staking.active') }}Inactive{{ $t('staking.inactive') }} @@ -272,15 +272,16 @@ loadAvatars(); - - - - - + + + + + @@ -400,7 +401,7 @@ loadAvatars(); v-if="v.jailed" class="badge badge-error gap-2 text-white" > - Jailed + {{ $t('staking.jailed') }} {{ $t('account.btn_delegate') }} @@ -428,7 +429,7 @@ loadAvatars(); - Top 33% + {{ $t('staking.top') }} 33%
- Top 67% + {{ $t('staking.top') }} 67%
diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 1623b90e..9291651a 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -164,5 +164,42 @@ "ordering": "Ordering", "btn_out": "Out", "btn_in": "In" + }, + "staking": { + "infalation": "Infalation", + "unbonding_time": "Unbonding Time", + "double_sign_slashing": "Double Sign Slashing", + "downtime_slashing": "Downtime Slashing", + "popular": "Popular", + "active": "Active", + "inactive": "Inactive", + "rank": "Rank", + "validator": "Validator", + "voting_power": "Voting Power", + "24h_changes": "24h Changes", + "commission": "Commission", + "actions": "Actions", + "jailed": "Jailed", + "top": "Top", + "description": "Delegating to lower-rank validators will increase the overall security of the network", + "about_us": "About Us", + "website": "Website", + "contact": "Contact", + "validator_status": "Validator Status", + "status": "Status", + "total_bonded": "Total Bonded Tokens", + "self_bonded": "Self Bonded", + "min_self": "Min Self Delegation", + "annual_profit": "Annual Profit", + "unbonding_height": "Unbonding Height", + "commissions_&_rewards": "Commissions & Rewards", + "commissions": "Commissions", + "outstanding": "Outstanding", + "addresses": "Addresses", + "account_addr": "Account Address", + "operator_addr": "Operator Address", + "hex_addr": "Hex Address", + "signer_addr": "Signer Address", + "consensus_pub_key": "Consensus Public Key" } }
- Height + {{ $t('account.height') }} HashMessagesTime{{ $t('account.hash') }}{{ $t('account.messages') }}{{ $t('account.time') }}
- # + {{ $t('staking.rank') }} VALIDATORVOTING POWER24h CHANGESCOMMISSIONACTIONS{{ $t('staking.validator') }}{{ $t('staking.voting_power') }}{{ $t('staking.24h_changes') }}{{ $t('staking.commission') }}{{ $t('staking.actions') }}