From 73a0786ce3cc3b5a52c93c11a08de4d0293c98c1 Mon Sep 17 00:00:00 2001 From: Techno Freak Date: Sat, 8 Jul 2023 13:48:31 +0300 Subject: [PATCH] feat: add i18n for proposal status on proposal page --- src/modules/[chain]/gov/[proposal_id].vue | 2 +- src/plugins/i18n/locales/en.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index d427984d..077ba1e4 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -303,7 +303,7 @@ function pageload(p: number) {
- {{ $t('gov.current_status') }}: {{ proposal.status }} + {{ $t('gov.current_status') }}: {{ $t(`gov.proposal_statuses.${proposal.status}`) }}
diff --git a/src/plugins/i18n/locales/en.json b/src/plugins/i18n/locales/en.json index 679b999e..95c83d19 100644 --- a/src/plugins/i18n/locales/en.json +++ b/src/plugins/i18n/locales/en.json @@ -133,6 +133,13 @@ "vote_start_from": "Voting start from", "vote_end": "Voting end", "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", "votes": "Votes" },