Merge pull request #475 from freak12techno/add-i18n-for-proposal-status

feat: add i18n for proposal status on proposal page
This commit is contained in:
ping 2023-07-09 08:16:32 +08:00 committed by GitHub
commit ae38647480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"
}, },