Language support update

This commit is contained in:
Erialos 2023-01-31 16:50:30 -07:00
parent b0eca720e8
commit c777dec8c5
8 changed files with 170 additions and 104 deletions

View File

@ -50,10 +50,29 @@
"statesync": "State Sync", "statesync": "State Sync",
"trade": "Trade", "trade": "Trade",
"parameters": "Parameters", "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_id": "Proposal ID",
"proposal_type": "Proposal Type", "proposal_type": "Proposal Type",
"proposal_proposer": "Proposer", "proposal_proposer": "Proposer",
@ -85,5 +104,48 @@
"proposal_votes_nwv": "voted No With Veto", "proposal_votes_nwv": "voted No With Veto",
"proposal_votes_abstain": "voted Abstain", "proposal_votes_abstain": "voted Abstain",
"proposal_votes_load": "Load More Votes" "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" :show="syncing"
> >
<div class="alert-body"> <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> </div>
</b-alert> </b-alert>
@ -90,7 +90,7 @@
</b-row> </b-row>
<b-card no-body> <b-card no-body>
<b-card-header> <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-header>
<b-card-body> <b-card-body>
<b-row <b-row
@ -192,22 +192,22 @@
<b-tooltip <b-tooltip
:target="'vote-yes'+prop.id" :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>
<b-tooltip <b-tooltip
:target="'vote-no'+prop.id" :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>
<b-tooltip <b-tooltip
:target="'vote-veto'+prop.id" :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>
<b-tooltip <b-tooltip
:target="'vote-abstain'+prop.id" :target="'vote-abstain'+prop.id"
> >
{{ percent(prop.tally.abstain) }}% voters voted Abstain {{ percent(prop.tally.abstain) }}% {{ $t('dashboard.proposal_votes_abstain') }}
</b-tooltip> </b-tooltip>
</b-col> </b-col>
<b-col <b-col
@ -243,9 +243,9 @@
</b-col> </b-col>
</b-row> </b-row>
<div v-if="proprosals2.length === 0"> <div v-if="proprosals2.length === 0">
No active proposal! {{ $t('dashboard.no_active_prop') }}
<b-link :to="`./${chain}/gov`"> <b-link :to="`./${chain}/gov`">
Browse all {{ $t('dashboard.browse') }}
</b-link> </b-link>
</div> </div>
</b-card-body> </b-card-body>
@ -256,19 +256,19 @@
class="shadow-none" class="shadow-none"
> >
<b-card-title class="d-flex justify-content-between text-capitalize"> <b-card-title class="d-flex justify-content-between text-capitalize">
<span>{{ walletName }} Assets </span> <span>{{ walletName }} {{ $t('dashboard.assets') }} </span>
<small> <small>
<b-link <b-link
v-if="address" v-if="address"
:to="`./${chain}/account/${address}`" :to="`./${chain}/account/${address}`"
> >
More {{ $t('dashboard.more') }}
</b-link> </b-link>
<b-link <b-link
v-else v-else
:to="`/wallet/accounts`" :to="`/wallet/accounts`"
> >
Not connected? {{ $t('dashboard.not_conn') }}
</b-link> </b-link>
</small> </small>
</b-card-title> </b-card-title>
@ -373,19 +373,19 @@
@click="selectDelegation(data,'Delegate')" @click="selectDelegation(data,'Delegate')"
> >
<template #button-content> <template #button-content>
Delegate {{ $t('dashboard.delegate') }}
</template> </template>
<b-dropdown-item <b-dropdown-item
v-b-modal.operation-modal v-b-modal.operation-modal
@click="selectDelegation(data,'Redelegate')" @click="selectDelegation(data,'Redelegate')"
> >
Redelegate {{ $t('dashboard.redelegate') }}
</b-dropdown-item> </b-dropdown-item>
<b-dropdown-item <b-dropdown-item
v-b-modal.operation-modal v-b-modal.operation-modal
@click="selectDelegation(data,'Unbond')" @click="selectDelegation(data,'Unbond')"
> >
Unbond {{ $t('dashboard.unbond') }}
</b-dropdown-item> </b-dropdown-item>
</b-dropdown> </b-dropdown>
<b-button <b-button
@ -394,7 +394,7 @@
size="sm" size="sm"
@click="selectWithdraw()" @click="selectWithdraw()"
> >
Widthdraw Rewards {{ $t('dashboard.withdraw_reward') }}
</b-button> </b-button>
</template> </template>
</b-table> </b-table>
@ -406,7 +406,7 @@
<b-col> <b-col>
<b-card> <b-card>
<b-card-header class="pt-0 pl-0 pr-0"> <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-header>
<b-card-body class="pl-0 pr-0"> <b-card-body class="pl-0 pr-0">
<b-row <b-row
@ -453,7 +453,7 @@
@click="selectSend()" @click="selectSend()"
> >
<feather-icon icon="SendIcon" /> <feather-icon icon="SendIcon" />
Send {{ $t('dashboard.send') }}
</b-button> </b-button>
</b-col> </b-col>
<b-col cols="6"> <b-col cols="6">
@ -465,7 +465,7 @@
<feather-icon <feather-icon
icon="PlusCircleIcon" icon="PlusCircleIcon"
/> />
Receive {{ $t('dashboard.receive') }}
</b-button> </b-button>
</b-col> </b-col>
</b-row> </b-row>
@ -473,7 +473,7 @@
<router-link to="/wallet/import"> <router-link to="/wallet/import">
<b-card class="addzone text-center"> <b-card class="addzone text-center">
<feather-icon icon="PlusIcon" /> <feather-icon icon="PlusIcon" />
Connect Wallet {{ $t('dashboard.connect_wal') }}
</b-card> </b-card>
</router-link> </router-link>
<operation-modal <operation-modal

View File

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

View File

@ -5,7 +5,7 @@
:show="syncing" :show="syncing"
> >
<div class="alert-body"> <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> </div>
</b-alert> </b-alert>
<b-row> <b-row>
@ -38,11 +38,15 @@
<parameters-module-component :data="slashing" /> <parameters-module-component :data="slashing" />
</b-col> </b-col>
</b-row> </b-row>
<b-card title="Application Version"> <b-card>
<object-field-component :tablefield="appVersion" /> <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>
<b-card title="Node Information"> <b-card>
<object-field-component :tablefield="nodeVersion" /> <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> </b-card>
</div> </div>
</template> </template>

View File

@ -2,21 +2,21 @@
<div class="px-0"> <div class="px-0">
<b-card> <b-card>
<b-card-title class="d-flex justify-content-between"> <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-card-title>
<b-alert <b-alert
variant="danger" variant="danger"
:show="syncing" :show="syncing"
> >
<div class="alert-body"> <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> </div>
</b-alert> </b-alert>
<b-row> <b-row>
<span <span
v-if="uptime.length===0" v-if="uptime.length===0"
class="text-danger" class="text-danger"
> Your node is out of active validator set</span> > {{$t(uptimeMyChainBlocks.not_active)}}</span>
<b-col <b-col
v-for="(x,index) in uptime" v-for="(x,index) in uptime"
:key="index" :key="index"

View File

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

View File

@ -23,7 +23,7 @@
style="color: #fff" style="color: #fff"
class="mb-0" class="mb-0"
> >
Address: <feather-icon {{ $t('walletAccountDetail.address') }} <feather-icon
icon="CopyIcon" icon="CopyIcon"
size="18" size="18"
@click="copy()" @click="copy()"
@ -38,7 +38,7 @@
class="d-flex flex-row" class="d-flex flex-row"
> >
<b-card-header class="pt-0 pl-0 pr-0"> <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> <div>
<b-button <b-button
v-b-modal.operation-modal v-b-modal.operation-modal
@ -50,7 +50,7 @@
<feather-icon <feather-icon
icon="SendIcon" icon="SendIcon"
class="d-md-none" 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>
<b-button <b-button
v-b-modal.operation-modal v-b-modal.operation-modal
@ -61,7 +61,7 @@
icon="SendIcon" icon="SendIcon"
class="d-md-none" 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> </b-button>
</div> </div>
</b-card-header> </b-card-header>
@ -117,7 +117,7 @@
</div> </div>
<!--/ tokens --> <!--/ tokens -->
<div class="text-right border-top pt-1"> <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> </div>
</b-col> </b-col>
</b-row> </b-row>
@ -127,7 +127,7 @@
v-if="unbonding && unbonding.length > 0" v-if="unbonding && unbonding.length > 0"
> >
<b-card-header class="pt-0 pl-0 pr-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-header>
<b-card-body class="pl-0 pr-0"> <b-card-body class="pl-0 pr-0">
<b-row <b-row
@ -135,7 +135,7 @@
:key="item.validator_address" :key="item.validator_address"
> >
<b-col cols="12"> <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>
<b-col cols="12"> <b-col cols="12">
<b-table <b-table
@ -164,7 +164,7 @@
v-if="delegations" v-if="delegations"
> >
<b-card-header class="pt-0 pl-0 pr-0"> <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> <div>
<b-button <b-button
v-b-modal.operation-modal v-b-modal.operation-modal
@ -176,7 +176,7 @@
<feather-icon <feather-icon
icon="LogInIcon" icon="LogInIcon"
class="d-md-none" 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>
<b-button <b-button
v-if="delegations" v-if="delegations"
@ -188,7 +188,7 @@
<feather-icon <feather-icon
icon="ShareIcon" icon="ShareIcon"
class="d-md-none" 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> </b-button>
</div> </div>
</b-card-header> </b-card-header>
@ -284,25 +284,25 @@
<b-tbody v-if="account.type === 'cosmos-sdk/BaseAccount'"> <b-tbody v-if="account.type === 'cosmos-sdk/BaseAccount'">
<b-tr> <b-tr>
<b-td> <b-td>
Account Type {{ $t('walletAccountDetail.acct_type') }}
</b-td><b-td> {{ account.type }} </b-td> </b-td><b-td> {{ account.type }} </b-td>
</b-tr> </b-tr>
<b-tr> <b-tr>
<b-td class="max-width:100px;"> <b-td class="max-width:100px;">
Account Number {{ $t('walletAccountDetail.acct_num') }}
</b-td><b-td> {{ account.value.account_number }} </b-td> </b-td><b-td> {{ account.value.account_number }} </b-td>
</b-tr> </b-tr>
<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-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-tr>
</b-tbody> </b-tbody>
<b-tbody v-else-if="account.type === 'cosmos-sdk/PeriodicVestingAccount' && account.value.base_vesting_account"> <b-tbody v-else-if="account.type === 'cosmos-sdk/PeriodicVestingAccount' && account.value.base_vesting_account">
<b-tr> <b-tr>
<b-td> <b-td>
Account Type {{ $t('walletAccountDetail.acct_type') }}
</b-td> </b-td>
<b-td> <b-td>
{{ account.type }} {{ account.type }}
@ -310,32 +310,32 @@
</b-tr> </b-tr>
<b-tr> <b-tr>
<b-td> <b-td>
Account Number {{ $t('walletAccountDetail.acct_num') }}
</b-td><b-td> {{ account.value.base_vesting_account.base_account.account_number }} </b-td> </b-td><b-td> {{ account.value.base_vesting_account.base_account.account_number }} </b-td>
</b-tr> </b-tr>
<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-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-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-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-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-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-tr> <b-tr>
<b-td> Vesting Periods </b-td> <b-td> {{ $t('walletAccountDetail.vest_period') }} </b-td>
<b-td> <b-td>
<b-table-simple> <b-table-simple>
<th>Length</th><th>Amount</th> <th>{{ $t('walletAccountDetail.length') }}</th><th>{{ $t('walletAccountDetail.amount') }}</th>
<b-tr <b-tr
v-for="p, index in account.value.vesting_periods" v-for="p, index in account.value.vesting_periods"
:key="index" :key="index"
@ -349,31 +349,31 @@
<b-tbody v-else-if="account.type === 'cosmos-sdk/DelayedVestingAccount' && account.value.base_vesting_account"> <b-tbody v-else-if="account.type === 'cosmos-sdk/DelayedVestingAccount' && account.value.base_vesting_account">
<b-tr> <b-tr>
<b-td> <b-td>
Account Type {{ $t('walletAccountDetail.acct_type') }}
</b-td><b-td> {{ account.type }} </b-td> </b-td><b-td> {{ account.type }} </b-td>
</b-tr> </b-tr>
<b-tr> <b-tr>
<b-td style="max-width:100px;"> <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-td><b-td> {{ account.value.base_vesting_account.base_account.account_number }} </b-td>
</b-tr> </b-tr>
<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-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-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-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-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-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-tr>
</b-tbody> </b-tbody>
<object-field-component <object-field-component
@ -403,10 +403,10 @@
<div class="misc-inner p-2 p-sm-3"> <div class="misc-inner p-2 p-sm-3">
<div class="w-100 text-center"> <div class="w-100 text-center">
<h2 class="mb-1"> <h2 class="mb-1">
Account not found 🕵🏻 {{ $t('walletAccountDetail.acct_not_found') }} 🕵🏻
</h2> </h2>
<p class="mb-2"> <p class="mb-2">
Oops! 😖 {{ error }}. {{ $t('walletAccountDetail.opps') }} 😖 {{ error }}.
</p> </p>
<b-button <b-button
@ -414,7 +414,7 @@
class="mb-2 btn-sm-block" class="mb-2 btn-sm-block"
:to="{path:'../'}" :to="{path:'../'}"
> >
Back to home {{ $t('walletAccountDetail.back_home') }}
</b-button> </b-button>
</div> </div>
</div> </div>

View File

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