Merge pull request #313 from effofxprime/feature-multi-language

Language support update
This commit is contained in:
ping 2023-02-02 12:50:24 +08:00 committed by GitHub
commit d5315d2a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 170 additions and 104 deletions

View File

@ -50,10 +50,29 @@
"statesync": "State Sync",
"trade": "Trade",
"parameters": "Parameters",
"consensus": "consensus"
"consensus": "consensus",
"no_new_blocks": "No new blocks have been produced since ",
"active_props": "Active Proposals",
"proposal_votes_yes": "voters voted Yes",
"proposal_votes_no": "voters voted No",
"proposal_votes_nwv": "voters voted No With Veto",
"proposal_votes_abstain": "voters voted Abstain",
"no_active_prop": "No active proposal!",
"browse": "Browse all",
"assets": "Assets",
"more": "More",
"not_conn": "Not Connected?",
"delegate": "Delegate",
"redelegate": "Redelegate",
"unbond": "Unbond",
"withdraw_reward": "Withdraw Rewards",
"unbonding_token": "Unbonding Tokens",
"send": "Send",
"receive": "Receive",
"connect_wal": "Connect Wallet"
},
"governance-proposal": {
"governanceProposal": {
"proposal_id": "Proposal ID",
"proposal_type": "Proposal Type",
"proposal_proposer": "Proposer",
@ -85,5 +104,48 @@
"proposal_votes_nwv": "voted No With Veto",
"proposal_votes_abstain": "voted Abstain",
"proposal_votes_load": "Load More Votes"
}
},
"parameters" : {
"no_blocks_produced" : "No new blocks have been produced since ",
"app_ver": "Application Version",
"node_info": "Node Information"
},
"uptimeMyChainBlocks" : {
"height": "Height:",
"no_blocks_produced" : "No new blocks have been produced since ",
"not_active": "Your node is out of active validator set"
},
"walletAccountDetail": {
"address": "Address:",
"assets": "Assets",
"transfer": "Transfer",
"ibc_transfer": "IBC Transfer",
"total": "Total: ",
"unbonding": "Unbonding Tokens",
"from": "From: ",
"delegation": "Delegation",
"delegate": "Delegate",
"withdraw": " Withdraw Rewards",
"acct_type": "Account Type",
"acct_num": "Account Number",
"seq": "Sequence",
"pub_key": "Public Key",
"orig_vest": "Original Vesting",
"delegated_free": "Delegated Free",
"delegated_vest": "Delegated Vesting",
"vest_time": "Vesting Time",
"vest_period": "Vesting Periods",
"length": "Length",
"amount": "Amount",
"end_time": "End Time",
"acct_not_found": "Account not found",
"opps": "Oops!",
"back_home": "Back to home"
},
"uptimeMyValidators": {
"tips": "Tips",
"two_ways": "There are two ways to monitor your validators:",
"pin": "Pin a validator on Uptime pages.",
"link": "Specify parameters like following:"
}
}

View File

@ -5,7 +5,7 @@
:show="syncing"
>
<div class="alert-body">
<span>No new blocks have been produced since <strong>{{ latestTime }}</strong> </span>
<span>{{ $t('dashboard.no_new_blocks') }}<strong>{{ latestTime }}</strong> </span>
</div>
</b-alert>
@ -90,7 +90,7 @@
</b-row>
<b-card no-body>
<b-card-header>
<b-card-title>Active Proposals</b-card-title>
<b-card-title>{{ $t('dashboard.active_props') }}</b-card-title>
</b-card-header>
<b-card-body>
<b-row
@ -192,22 +192,22 @@
<b-tooltip
:target="'vote-yes'+prop.id"
>
{{ percent(prop.tally.yes) }}% voters voted Yes
{{ percent(prop.tally.yes) }}% {{ $t('dashboard.proposal_votes_yes') }}
</b-tooltip>
<b-tooltip
:target="'vote-no'+prop.id"
>
{{ percent(prop.tally.no) }}% voters voted No
{{ percent(prop.tally.no) }}% {{ $t('dashboard.proposal_votes_no') }}
</b-tooltip>
<b-tooltip
:target="'vote-veto'+prop.id"
>
{{ percent(prop.tally.veto) }}% voters voted No With Veto
{{ percent(prop.tally.veto) }}% {{ $t('dashboard.proposal_votes_nwv') }}
</b-tooltip>
<b-tooltip
:target="'vote-abstain'+prop.id"
>
{{ percent(prop.tally.abstain) }}% voters voted Abstain
{{ percent(prop.tally.abstain) }}% {{ $t('dashboard.proposal_votes_abstain') }}
</b-tooltip>
</b-col>
<b-col
@ -243,9 +243,9 @@
</b-col>
</b-row>
<div v-if="proprosals2.length === 0">
No active proposal!
{{ $t('dashboard.no_active_prop') }}
<b-link :to="`./${chain}/gov`">
Browse all
{{ $t('dashboard.browse') }}
</b-link>
</div>
</b-card-body>
@ -256,19 +256,19 @@
class="shadow-none"
>
<b-card-title class="d-flex justify-content-between text-capitalize">
<span>{{ walletName }} Assets </span>
<span>{{ walletName }} {{ $t('dashboard.assets') }} </span>
<small>
<b-link
v-if="address"
:to="`./${chain}/account/${address}`"
>
More
{{ $t('dashboard.more') }}
</b-link>
<b-link
v-else
:to="`/wallet/accounts`"
>
Not connected?
{{ $t('dashboard.not_conn') }}
</b-link>
</small>
</b-card-title>
@ -373,19 +373,19 @@
@click="selectDelegation(data,'Delegate')"
>
<template #button-content>
Delegate
{{ $t('dashboard.delegate') }}
</template>
<b-dropdown-item
v-b-modal.operation-modal
@click="selectDelegation(data,'Redelegate')"
>
Redelegate
{{ $t('dashboard.redelegate') }}
</b-dropdown-item>
<b-dropdown-item
v-b-modal.operation-modal
@click="selectDelegation(data,'Unbond')"
>
Unbond
{{ $t('dashboard.unbond') }}
</b-dropdown-item>
</b-dropdown>
<b-button
@ -394,7 +394,7 @@
size="sm"
@click="selectWithdraw()"
>
Widthdraw Rewards
{{ $t('dashboard.withdraw_reward') }}
</b-button>
</template>
</b-table>
@ -406,7 +406,7 @@
<b-col>
<b-card>
<b-card-header class="pt-0 pl-0 pr-0">
<b-card-title>Unbonding Tokens</b-card-title>
<b-card-title>{{ $t('dashboard.unbonding_token') }}</b-card-title>
</b-card-header>
<b-card-body class="pl-0 pr-0">
<b-row
@ -453,7 +453,7 @@
@click="selectSend()"
>
<feather-icon icon="SendIcon" />
Send
{{ $t('dashboard.send') }}
</b-button>
</b-col>
<b-col cols="6">
@ -465,7 +465,7 @@
<feather-icon
icon="PlusCircleIcon"
/>
Receive
{{ $t('dashboard.receive') }}
</b-button>
</b-col>
</b-row>
@ -473,7 +473,7 @@
<router-link to="/wallet/import">
<b-card class="addzone text-center">
<feather-icon icon="PlusIcon" />
Connect Wallet
{{ $t('dashboard.connect_wal') }}
</b-card>
</router-link>
<operation-modal

View File

@ -12,7 +12,7 @@
variant="light-info"
class="text-right"
>
{{$t('governance-proposal.proposal_status_deposit')}}
{{$t('governanceProposal.proposal_status_deposit')}}
</b-badge>
<b-badge
v-if="proposal.status == 2"
@ -20,7 +20,7 @@
variant="light-primary"
class="text-right"
>
{{$t('governance-proposal.proposal_status_voting')}}
{{$t('governanceProposal.proposal_status_voting')}}
</b-badge>
<b-badge
v-if="proposal.status == 3"
@ -28,7 +28,7 @@
variant="light-success"
class="text-right"
>
{{$t('governance-proposal.proposal_status_passed')}}
{{$t('governanceProposal.proposal_status_passed')}}
</b-badge>
<b-badge
v-if="proposal.status == 4"
@ -36,7 +36,7 @@
variant="light-danger"
class="text-right"
>
{{$t('governance-proposal.proposal_status_rejected')}}
{{$t('governanceProposal.proposal_status_rejected')}}
</b-badge>
{{ proposal.title }}
</b-card-title>
@ -55,17 +55,17 @@
<tbody>
<b-tr>
<b-td style="text-transform: capitalize; vertical-align: top; width:200px">
{{ $t('governance-proposal.proposal_total_deposit') }}
{{ $t('governanceProposal.proposal_total_deposit') }}
</b-td><b-td>{{ formatToken(proposal.total_deposit) }} </b-td>
</b-tr>
<b-tr>
<b-td>
{{ $t('governance-proposal.proposal_submit_time') }}
{{ $t('governanceProposal.proposal_submit_time') }}
</b-td><b-td>{{ formatDate(proposal.submit_time) }}</b-td>
</b-tr>
<b-tr>
<b-td>
{{ $t('governance-proposal.voting_time') }}
{{ $t('governanceProposal.voting_time') }}
</b-td><b-td>{{ formatDate(proposal.voting_start_time) }} - {{ formatDate(proposal.voting_end_time) }}</b-td>
</b-tr>
<b-tr v-if="proposal.metadata">
@ -78,7 +78,7 @@
<b-table-simple v-if="proposal.type.indexOf('SoftwareUpgrade') > 0">
<b-tr>
<b-td class="text-center">
{{ $t('governance-proposal.upgrade_time') }} {{ upgradeTime }}
{{ $t('governanceProposal.upgrade_time') }} {{ upgradeTime }}
<flip-countdown :deadline="upgradeTime" />
<b-input-group prepend="Estimated by block time: ">
<b-form-select v-model="blocktime">
@ -104,7 +104,7 @@
<b-button
variant="outline-primary"
>
{{ $t('governance-proposal.btn_back_list') }}
{{ $t('governanceProposal.btn_back_list') }}
</b-button>
</router-link>
<b-button
@ -114,14 +114,14 @@
class="btn float-right mg-2"
@click="openModal('Vote')"
>
{{ $t('governance-proposal.btn_vote') }}
{{ $t('governanceProposal.btn_vote') }}
</b-button>
</b-card-footer>
</b-card>
<b-card no-body>
<b-card-header>
<b-card-title>
{{ $t('governance-proposal.proposal_votes') }}
{{ $t('governanceProposal.proposal_votes') }}
</b-card-title>
</b-card-header>
<b-card-body>
@ -166,22 +166,22 @@
<b-tooltip
:target="'vote-yes'+proposal.id"
>
{{ percent(proposal.tally.yes) }}% {{ $t('governance-proposal.proposal_votes_yes') }}
{{ percent(proposal.tally.yes) }}% {{ $t('governanceProposal.proposal_votes_yes') }}
</b-tooltip>
<b-tooltip
:target="'vote-no'+proposal.id"
>
{{ percent(proposal.tally.no) }}% {{ $t('governance-proposal.proposal_votes_no') }}
{{ percent(proposal.tally.no) }}% {{ $t('governanceProposal.proposal_votes_no') }}
</b-tooltip>
<b-tooltip
:target="'vote-veto'+proposal.id"
>
{{ percent(proposal.tally.veto) }}% voted {{ $t('governance-proposal.proposal_votes_nwv') }}
{{ percent(proposal.tally.veto) }}% voted {{ $t('governanceProposal.proposal_votes_nwv') }}
</b-tooltip>
<b-tooltip
:target="'vote-abstain'+proposal.id"
>
{{ percent(proposal.tally.abstain) }}% {{ $t('governance-proposal.proposal_votes_abstain') }}
{{ percent(proposal.tally.abstain) }}% {{ $t('governanceProposal.proposal_votes_abstain') }}
</b-tooltip>
<div
@ -211,7 +211,7 @@
@click="loadVotes()"
>
<feather-icon icon="PlusIcon" />
{{ $t('governance-proposal.proposal_votes_load') }}
{{ $t('governanceProposal.proposal_votes_load') }}
</div>
</div></b-card-body>
</b-card>
@ -221,7 +221,7 @@
>
<b-card-header>
<b-card-title>
{{ $t('governance-proposal.proposal_deposits') }} ({{ formatToken(proposal.total_deposit) }})
{{ $t('governanceProposal.proposal_deposits') }} ({{ formatToken(proposal.total_deposit) }})
</b-card-title>
</b-card-header>
<b-card-body>
@ -244,7 +244,7 @@
<b-button
variant="outline-primary"
>
{{ $t('governance-proposal.btn_back_list') }}
{{ $t('governanceProposal.btn_back_list') }}
</b-button>
</router-link>
<b-button
@ -254,7 +254,7 @@
class="btn float-right mg-2"
@click="openModal('GovDeposit')"
>
{{ $t('governance-proposal.btn_deposit') }}
{{ $t('governanceProposal.btn_deposit') }}
</b-button>
<b-button
v-b-modal.operation-modal
@ -263,7 +263,7 @@
class="btn float-right mg-2 mr-1"
@click="openModal('Vote')"
>
{{ $t('governance-proposal.btn_vote') }}
{{ $t('governanceProposal.btn_vote') }}
</b-button>
</b-card-footer>
</b-card>

View File

@ -5,7 +5,7 @@
:show="syncing"
>
<div class="alert-body">
<span>No new blocks have been produced since <strong>{{ latestTime }}</strong> </span>
<span>{{$t('parameters.no_blocks_produced')}}<strong>{{ latestTime }}</strong> </span>
</div>
</b-alert>
<b-row>
@ -38,11 +38,15 @@
<parameters-module-component :data="slashing" />
</b-col>
</b-row>
<b-card title="Application Version">
<object-field-component :tablefield="appVersion" />
<b-card>
<b-card-title class="card-title"><h4>{{$t('parameters.app_ver')}}</h4></b-card-title>
<b-card><object-field-component :tablefield="appVersion" /></b-card>
</b-card>
<b-card title="Node Information">
<object-field-component :tablefield="nodeVersion" />
<b-card>
<b-card-title class="card-title">
<h4>{{$t('parameters.node_info')}}</h4>
</b-card-title>
<b-card><object-field-component :tablefield="nodeVersion" /></b-card>
</b-card>
</div>
</template>

View File

@ -2,21 +2,21 @@
<div class="px-0">
<b-card>
<b-card-title class="d-flex justify-content-between">
<span class="text-uppercase"> {{ chain }} </span><small class="text-right"> Height: {{ height }} </small>
<span class="text-uppercase"> {{ chain }} </span><small class="text-right"> {{$t('uptimeMyChainBlocks.height')}} {{ height }} </small>
</b-card-title>
<b-alert
variant="danger"
:show="syncing"
>
<div class="alert-body">
<span>No new blocks have been produced since <strong>{{ latestTime }}</strong> </span>
<span>{{$t('uptimeMyChainBlocks.no_blocks_produced')}}<strong>{{ latestTime }}</strong> </span>
</div>
</b-alert>
<b-row>
<span
v-if="uptime.length===0"
class="text-danger"
> Your node is out of active validator set</span>
> {{$t(uptimeMyChainBlocks.not_active)}}</span>
<b-col
v-for="(x,index) in uptime"
:key="index"

View File

@ -21,12 +21,12 @@
show
>
<div class="alert-heading">
Tips
{{ $t('uptimeMyValidators.tips') }}
</div>
<div class="alert-body">
There are two ways to monitor your validators:
<li> Pin a validator on Uptime pages.</li>
<li> Specify parameters like following: <pre>https://ping.pub/cosmos/uptime/my?validators={"sifchain":["FBADE9A30473BB9ED6DFA16BFB3838E028F33650"],"chain_name":["hexAddress"]}</pre></li>
{{ $t('uptimeMyValidators.two_ways') }}
<li> {{ $t('uptimeMyValidators.pin') }}</li>
<li> {{ $t('uptimeMyValidators.link') }} <pre>https://ping.pub/cosmos/uptime/my?validators={"sifchain":["FBADE9A30473BB9ED6DFA16BFB3838E028F33650"],"chain_name":["hexAddress"]}</pre></li>
</div>
</b-alert>
</div>

View File

@ -23,7 +23,7 @@
style="color: #fff"
class="mb-0"
>
Address: <feather-icon
{{ $t('walletAccountDetail.address') }} <feather-icon
icon="CopyIcon"
size="18"
@click="copy()"
@ -38,7 +38,7 @@
class="d-flex flex-row"
>
<b-card-header class="pt-0 pl-0 pr-0">
<b-card-title>Assets</b-card-title>
<b-card-title>{{ $t('walletAccountDetail.assets') }}</b-card-title>
<div>
<b-button
v-b-modal.operation-modal
@ -50,7 +50,7 @@
<feather-icon
icon="SendIcon"
class="d-md-none"
/><small class="d-none d-md-block">Transfer</small>
/><small class="d-none d-md-block">{{ $t('walletAccountDetail.transfer') }}</small>
</b-button>
<b-button
v-b-modal.operation-modal
@ -61,7 +61,7 @@
icon="SendIcon"
class="d-md-none"
/>
<span class="d-none d-md-block">IBC Transfer</span>
<span class="d-none d-md-block">{{ $t('walletAccountDetail.ibc_transfer') }}</span>
</b-button>
</div>
</b-card-header>
@ -117,7 +117,7 @@
</div>
<!--/ tokens -->
<div class="text-right border-top pt-1">
<h2>Total: {{ currency }}{{ formatNumber(assetTable.currency) }}</h2>
<h2>{{ $t('walletAccountDetail.total') }}{{ currency }}{{ formatNumber(assetTable.currency) }}</h2>
</div>
</b-col>
</b-row>
@ -127,7 +127,7 @@
v-if="unbonding && unbonding.length > 0"
>
<b-card-header class="pt-0 pl-0 pr-0">
<b-card-title>Unbonding Tokens</b-card-title>
<b-card-title>{{ $t('walletAccountDetail.unbonding') }}</b-card-title>
</b-card-header>
<b-card-body class="pl-0 pr-0">
<b-row
@ -135,7 +135,7 @@
:key="item.validator_address"
>
<b-col cols="12">
<span class="font-weight-bolder">From: <router-link :to="`../staking/${item.validator_address}`">{{ item.validator_address }}</router-link></span>
<span class="font-weight-bolder">{{ $t('walletAccountDetail.from') }}<router-link :to="`../staking/${item.validator_address}`">{{ item.validator_address }}</router-link></span>
</b-col>
<b-col cols="12">
<b-table
@ -164,7 +164,7 @@
v-if="delegations"
>
<b-card-header class="pt-0 pl-0 pr-0">
<b-card-title>Delegation</b-card-title>
<b-card-title>{{ $t('walletAccountDetail.delegation') }}</b-card-title>
<div>
<b-button
v-b-modal.operation-modal
@ -176,7 +176,7 @@
<feather-icon
icon="LogInIcon"
class="d-md-none"
/><small class="d-none d-md-block">Delegate</small>
/><small class="d-none d-md-block">{{ $t('walletAccountDetail.delegate') }}</small>
</b-button>
<b-button
v-if="delegations"
@ -188,7 +188,7 @@
<feather-icon
icon="ShareIcon"
class="d-md-none"
/><small class="d-none d-md-block"> Withdraw Rewards</small>
/><small class="d-none d-md-block">{{ $t('walletAccountDetail.withdraw') }}</small>
</b-button>
</div>
</b-card-header>
@ -284,25 +284,25 @@
<b-tbody v-if="account.type === 'cosmos-sdk/BaseAccount'">
<b-tr>
<b-td>
Account Type
{{ $t('walletAccountDetail.acct_type') }}
</b-td><b-td> {{ account.type }} </b-td>
</b-tr>
<b-tr>
<b-td class="max-width:100px;">
Account Number
{{ $t('walletAccountDetail.acct_num') }}
</b-td><b-td> {{ account.value.account_number }} </b-td>
</b-tr>
<b-tr>
<b-td> Sequence </b-td><b-td> {{ account.value.sequence }} </b-td>
<b-td> {{ $t('walletAccountDetail.seq') }} </b-td><b-td> {{ account.value.sequence }} </b-td>
</b-tr>
<b-tr>
<b-td> Public Key </b-td><b-td> <object-field-component :tablefield="account.value.public_key" /> </b-td>
<b-td> {{ $t('walletAccountDetail.pub_key') }} </b-td><b-td> <object-field-component :tablefield="account.value.public_key" /> </b-td>
</b-tr>
</b-tbody>
<b-tbody v-else-if="account.type === 'cosmos-sdk/PeriodicVestingAccount' && account.value.base_vesting_account">
<b-tr>
<b-td>
Account Type
{{ $t('walletAccountDetail.acct_type') }}
</b-td>
<b-td>
{{ account.type }}
@ -310,32 +310,32 @@
</b-tr>
<b-tr>
<b-td>
Account Number
{{ $t('walletAccountDetail.acct_num') }}
</b-td><b-td> {{ account.value.base_vesting_account.base_account.account_number }} </b-td>
</b-tr>
<b-tr>
<b-td> Sequence </b-td><b-td> {{ account.value.base_vesting_account.base_account.sequence }} </b-td>
<b-td> {{ $t('walletAccountDetail.seq') }} </b-td><b-td> {{ account.value.base_vesting_account.base_account.sequence }} </b-td>
</b-tr>
<b-tr>
<b-td> Public Key </b-td><b-td> <object-field-component :tablefield="account.value.base_vesting_account.base_account.public_key" /> </b-td>
<b-td> {{ $t('walletAccountDetail.pub_key') }} </b-td><b-td> <object-field-component :tablefield="account.value.base_vesting_account.base_account.public_key" /> </b-td>
</b-tr>
<b-tr>
<b-td> Original Vesting </b-td><b-td> {{ formatToken(account.value.base_vesting_account.original_vesting) }} </b-td>
<b-td> {{ $t('walletAccountDetail.orig_vest') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.original_vesting) }} </b-td>
</b-tr>
<b-tr>
<b-td> Delegated Free </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_free) }} </b-td>
<b-td> {{ $t('walletAccountDetail.delegated_free') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_free) }} </b-td>
</b-tr>
<b-tr>
<b-td> Delegated Vesting </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_vesting) }} </b-td>
<b-td> {{ $t('walletAccountDetail.delegated_vest') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_vesting) }} </b-td>
</b-tr>
<b-tr>
<b-td> Vesting Time </b-td><b-td> {{ formatTime(account.value.start_time) }} - {{ formatTime(account.value.base_vesting_account.end_time) }}</b-td>
<b-td> {{ $t('walletAccountDetail.vest_time') }} </b-td><b-td> {{ formatTime(account.value.start_time) }} - {{ formatTime(account.value.base_vesting_account.end_time) }}</b-td>
</b-tr>
<b-tr>
<b-td> Vesting Periods </b-td>
<b-td> {{ $t('walletAccountDetail.vest_period') }} </b-td>
<b-td>
<b-table-simple>
<th>Length</th><th>Amount</th>
<th>{{ $t('walletAccountDetail.length') }}</th><th>{{ $t('walletAccountDetail.amount') }}</th>
<b-tr
v-for="p, index in account.value.vesting_periods"
:key="index"
@ -349,31 +349,31 @@
<b-tbody v-else-if="account.type === 'cosmos-sdk/DelayedVestingAccount' && account.value.base_vesting_account">
<b-tr>
<b-td>
Account Type
{{ $t('walletAccountDetail.acct_type') }}
</b-td><b-td> {{ account.type }} </b-td>
</b-tr>
<b-tr>
<b-td style="max-width:100px;">
Account Number
{{ $t('walletAccountDetail.acct_num') }}
</b-td><b-td> {{ account.value.base_vesting_account.base_account.account_number }} </b-td>
</b-tr>
<b-tr>
<b-td> Sequence </b-td><b-td> {{ account.value.base_vesting_account.base_account.sequence }} </b-td>
<b-td> {{ $t('walletAccountDetail.seq') }} </b-td><b-td> {{ account.value.base_vesting_account.base_account.sequence }} </b-td>
</b-tr>
<b-tr>
<b-td> Public Key </b-td><b-td> <object-field-component :tablefield="account.value.base_vesting_account.base_account.public_key" /> </b-td>
<b-td> {{ $t('walletAccountDetail.pub_key') }} </b-td><b-td> <object-field-component :tablefield="account.value.base_vesting_account.base_account.public_key" /> </b-td>
</b-tr>
<b-tr>
<b-td> Original Vesting </b-td><b-td> {{ formatToken(account.value.base_vesting_account.original_vesting) }} </b-td>
<b-td> {{ $t('walletAccountDetail.orig_vest') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.original_vesting) }} </b-td>
</b-tr>
<b-tr>
<b-td> Delegated Free </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_free) }} </b-td>
<b-td> {{ $t('walletAccountDetail.delegated_free') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_free) }} </b-td>
</b-tr>
<b-tr>
<b-td> Delegated Vesting </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_vesting) }} </b-td>
<b-td> {{ $t('walletAccountDetail.delegated_vest') }} </b-td><b-td> {{ formatToken(account.value.base_vesting_account.delegated_vesting) }} </b-td>
</b-tr>
<b-tr>
<b-td> End Time </b-td><b-td> {{ formatTime(account.value.base_vesting_account.end_time) }}</b-td>
<b-td> {{ $t('walletAccountDetail.end_time') }} </b-td><b-td> {{ formatTime(account.value.base_vesting_account.end_time) }}</b-td>
</b-tr>
</b-tbody>
<object-field-component
@ -403,10 +403,10 @@
<div class="misc-inner p-2 p-sm-3">
<div class="w-100 text-center">
<h2 class="mb-1">
Account not found 🕵🏻
{{ $t('walletAccountDetail.acct_not_found') }} 🕵🏻
</h2>
<p class="mb-2">
Oops! 😖 {{ error }}.
{{ $t('walletAccountDetail.opps') }} 😖 {{ error }}.
</p>
<b-button
@ -414,7 +414,7 @@
class="mb-2 btn-sm-block"
:to="{path:'../'}"
>
Back to home
{{ $t('walletAccountDetail.back_home') }}
</b-button>
</div>
</div>

View File

@ -20,27 +20,27 @@
<div class="gov-wrapper flex-wrap my-1">
<div class="gov">
<p class="card-text mb-25">
{{$t('governance-proposal.proposal_status')}}
{{$t('governanceProposal.proposal_status')}}
</p>
<h6 class="mb-0">
<span v-if="p.status == 1">
{{$t('governance-proposal.proposal_status_deposit')}}
{{$t('governanceProposal.proposal_status_deposit')}}
</span>
<span v-else-if="p.status == 2">
{{$t('governance-proposal.proposal_status_voting')}}
{{$t('governanceProposal.proposal_status_voting')}}
</span>
<span v-else-if="p.status == 3">
{{$t('governance-proposal.proposal_status_passed')}}
{{$t('governanceProposal.proposal_status_passed')}}
</span>
<span v-else-if="p.status == 4">
{{$t('governance-proposal.proposal_status_rejected')}}
{{$t('governanceProposal.proposal_status_rejected')}}
</span>
<span v-else>{{ p.status }}</span>
</h6>
</div>
<div class="gov">
<p class="card-text mb-25">
{{$t('governance-proposal.proposal_status_start_date')}}
{{$t('governanceProposal.proposal_status_start_date')}}
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_start_time) }}
@ -48,7 +48,7 @@
</div>
<div class="gov">
<p class="card-text mb-25">
{{$t('governance-proposal.proposal_status_end_date')}}
{{$t('governanceProposal.proposal_status_end_date')}}
</p>
<h6 class="mb-0">
{{ formatDate(p.voting_end_time) }}
@ -56,7 +56,7 @@
</div>
<div class="gov">
<p class="card-text mb-25">
{{$t('governance-proposal.proposal_status_deposit')}}
{{$t('governanceProposal.proposal_status_deposit')}}
</p>
<h6 class="mb-0">
{{ formatToken(p.total_deposit) || '-' }}
@ -119,22 +119,22 @@
<b-tooltip
:target="'vote-yes'+p.id"
>
{{ percent(p.tally.yes) }}% {{ $t('governance-proposal.proposal_votes_yes') }}
{{ percent(p.tally.yes) }}% {{ $t('governanceProposal.proposal_votes_yes') }}
</b-tooltip>
<b-tooltip
:target="'vote-no'+p.id"
>
{{ percent(p.tally.no) }}% {{ $t('governance-proposal.proposal_votes_no') }}
{{ percent(p.tally.no) }}% {{ $t('governanceProposal.proposal_votes_no') }}
</b-tooltip>
<b-tooltip
:target="'vote-veto'+p.id"
>
{{ percent(p.tally.veto) }}% {{ $t('governance-proposal.proposal_votes_nwv') }}
{{ percent(p.tally.veto) }}% {{ $t('governanceProposal.proposal_votes_nwv') }}
</b-tooltip>
<b-tooltip
:target="'vote-abstain'+p.id"
>
{{ percent(p.tally.abstain) }}% {{ $t('governance-proposal.proposal_votes_abstain') }}
{{ percent(p.tally.abstain) }}% {{ $t('governanceProposal.proposal_votes_abstain') }}
</b-tooltip>
</div>
<b-card-footer class="pb-0">
@ -148,7 +148,7 @@
:href="`./gov/${p.id}`"
variant="outline-primary"
>
{{ $t('governance-proposal.btn_detail') }}
{{ $t('governanceProposal.btn_detail') }}
</b-button>
</router-link>
<b-button
@ -158,7 +158,7 @@
class="btn float-right mg-2"
@click="selectProposal('GovDeposit',p.id, p.title)"
>
{{ $t('governance-proposal.btn_deposit') }}
{{ $t('governanceProposal.btn_deposit') }}
</b-button>
<b-button
v-if="p.status===2"
@ -167,7 +167,7 @@
class="btn float-right mg-2"
@click="selectProposal('Vote',p.id, p.title)"
>
{{ $t('governance-proposal.btn_vote') }}
{{ $t('governanceProposal.btn_vote') }}
</b-button>
</b-card-footer>
</div></b-card>