From 0f4b487f7b5e4834a336c91772a38a065154a0ce Mon Sep 17 00:00:00 2001 From: Salman Wahib Date: Wed, 21 Jun 2023 02:03:29 +0700 Subject: [PATCH] i18n: update add en src/modules/[chain]/ibc/ Author: Salman Wahib Co-authored-by: liangping <18786721@qq.com> --- src/modules/[chain]/ibc/connection.vue | 10 ++-- .../ibc/connection/[connection_id].vue | 50 +++++++++---------- src/plugins/i18n/locales/en.json | 29 +++++++++++ 3 files changed, 59 insertions(+), 30 deletions(-) diff --git a/src/modules/[chain]/ibc/connection.vue b/src/modules/[chain]/ibc/connection.vue index 988cc3c8..8b3b6727 100644 --- a/src/modules/[chain]/ibc/connection.vue +++ b/src/modules/[chain]/ibc/connection.vue @@ -39,10 +39,10 @@ function pageload(p: number) {
-

IBC Connections

+

{{ $t('ibc.title') }}

@@ -52,10 +52,10 @@ function pageload(p: number) {
- + - +
diff --git a/src/modules/[chain]/ibc/connection/[connection_id].vue b/src/modules/[chain]/ibc/connection/[connection_id].vue index 9ba171b0..43ba6f06 100644 --- a/src/modules/[chain]/ibc/connection/[connection_id].vue +++ b/src/modules/[chain]/ibc/connection/[connection_id].vue @@ -94,18 +94,18 @@ function color(v: string) {
-

IBC Client {{ +

{{ $t('ibc.title_2') }}{{ clientState.client_state?.['@type'] }}

- + - + - + - + - + - + - + @@ -137,24 +137,24 @@ function color(v: string) {
Trust Parameters{{ $t('ibc.trust_parameters') }}
trust level:{{ $t('ibc.trust_level') }}: {{ clientState.client_state?.trust_level?.numerator }}/{{ clientState.client_state?.trust_level?.denominator @@ -113,23 +113,23 @@ function color(v: string) {
trusting period:{{ $t('ibc.trusting_period') }}: {{ formatSeconds(clientState.client_state?.trusting_period) }}
unbonding period:{{ $t('ibc.unbonding_period') }}: {{ formatSeconds(clientState.client_state?.unbonding_period) }}
max clock drift:{{ $t('ibc.max_clock_drift') }}: {{ formatSeconds(clientState.client_state?.max_clock_drift) }}
frozen height:{{ $t('ibc.frozen_height') }}: {{ clientState.client_state?.frozen_height }}
latest height:{{ $t('ibc.latest_height') }}: {{ clientState.client_state?.latest_height }}
- + - + @@ -163,27 +163,27 @@ function color(v: string) {
-

Channels

+

{{ $t('ibc.channels') }}

Upgrade Parameters{{ $t('ibc.upgrade_parameters') }}
-
allow update after expiry: {{ +
{{ $t('ibc.allow_update_after_expiry') }}: {{ clientState.client_state?.allow_update_after_expiry }}
-
allow update after misbehaviour: {{ +
{{ $t('ibc.allow_update_after_misbehaviour') }}: {{ clientState.client_state?.allow_update_after_misbehaviour }}
upgrade path:{{ $t('ibc.upgrade_path') }}: {{ clientState.client_state?.upgrade_path.join(', ') }}
- - - - - - - - + + + + + + + +
TxsChannel IdPort IdStateCounterpartyHopsVersionOrdering{{ $t('ibc.txs') }}{{ $t('ibc.channel_id') }}{{ $t('ibc.port_id') }}{{ $t('ibc.state') }}{{ $t('ibc.counterparty') }}{{ $t('ibc.hops') }}{{ $t('ibc.version') }}{{ $t('ibc.ordering') }}
- - + +
@@ -196,8 +196,8 @@ function color(v: string) {
- - + +
diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 478d38ce..1623b90e 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -135,5 +135,34 @@ "current_status": "Current Status", "upgrade_plan": "Upgrade Plan", "votes": "Votes" + }, + "ibc": { + "title": "IBC Connections", + "title_2": "IBC Client", + "registry": "Registry", + "connection_id": "Connection Id", + "btn_apply": "Apply", + "trust_parameters": "Trust Parameters", + "trust_level": "Trust level", + "trusting_period": "Trusting period", + "unbonding_period": "Unbonding period", + "max_clock_drift": "Max clock drift", + "frozen_height": "Frozen height", + "latest_height": "Latest height", + "upgrade_parameters": "Upgrade Parameters", + "allow_update_after_expiry": "Allow update after expiry", + "allow_update_after_misbehaviour": "Allow update after misbehaviour", + "upgrade_path": "Upgrade path", + "channels": "Channels", + "txs": "Txs", + "channel_id": "Channel Id", + "port_id": "Port Id", + "state": "State", + "counterparty": "Counterparty", + "hops": "Hops", + "version": "Version", + "ordering": "Ordering", + "btn_out": "Out", + "btn_in": "In" } }