feat: add i18n for proposal status on proposal page

This commit is contained in:
Techno Freak 2023-07-08 13:48:31 +03:00
parent bc6a81e3b5
commit 73a0786ce3
2 changed files with 8 additions and 1 deletions

View File

@ -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>

View File

@ -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"
}, },