feat: add i18n for proposal status on proposal page
This commit is contained in:
parent
bc6a81e3b5
commit
73a0786ce3
@ -303,7 +303,7 @@ function pageload(p: number) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pl-5 text-sm">
|
<div class="pl-5 text-sm">
|
||||||
{{ $t('gov.current_status') }}: {{ proposal.status }}
|
{{ $t('gov.current_status') }}: {{ $t(`gov.proposal_statuses.${proposal.status}`) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -133,6 +133,13 @@
|
|||||||
"vote_start_from": "Voting start from",
|
"vote_start_from": "Voting start from",
|
||||||
"vote_end": "Voting end",
|
"vote_end": "Voting end",
|
||||||
"current_status": "Current Status",
|
"current_status": "Current Status",
|
||||||
|
"proposal_statuses": {
|
||||||
|
"PROPOSAL_STATUS_DEPOSIT_PERIOD": "Deposit period",
|
||||||
|
"PROPOSAL_STATUS_VOTING_PERIOD": "Voting period",
|
||||||
|
"PROPOSAL_STATUS_PASSED": "Passed",
|
||||||
|
"PROPOSAL_STATUS_REJECTED": "Rejected",
|
||||||
|
"PROPOSAL_STATUS_FAILED": "Failed"
|
||||||
|
},
|
||||||
"upgrade_plan": "Upgrade Plan",
|
"upgrade_plan": "Upgrade Plan",
|
||||||
"votes": "Votes"
|
"votes": "Votes"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user