diff --git a/apps/shell/messages/en.json b/apps/shell/messages/en.json index 5cbfcdab8..718a23c92 100644 --- a/apps/shell/messages/en.json +++ b/apps/shell/messages/en.json @@ -45,7 +45,51 @@ "confirm-button": "Confirm", "send-button": "Send" }, - "governance": {}, + "governance": { + "add-memo": "Add memo", + "add-your-memo": "Add your memo", + "amount-error-min": "Bellow minimal value", + "amount-error-more-than-have": "More than you have", + "cast-vote": "Cast your vote", + "change-vote-message": "You can change your vote while the voting is in progress", + "confirm-delegation": "Confirm delegation", + "created-at": "Created at (gmt)", + "dates": "Dates", + "deposit": "Deposit", + "deposit-end": "Deposit end", + "description": "Description", + "enter-amount": "Enter Amount", + "enter-deposit-message": "Enter the amount you want to deposit", + "fetching-proposal-details": "Fetching proposal details", + "fetching-proposals": "Fetching proposals", + "info": "Info", + "my-balance": "My balance", + "parameter-changes": "Parameter changes", + "proposal-deposit-alert": "If the proposal does not collect the required number of deposits in a certain time, it will reject", + "proposal-types": { + "cancel-software-upgrade": "Cancel software upgrade", + "client-update": "Client update", + "parameter-change": "Parameter change", + "register-coin": "Register coin", + "register-erc20": "Register ERC20", + "software-upgrade": "Software upgrade", + "text": "Text" + }, + "show-all-dates": "Show all dates", + "total-deposit": "Total deposit", + "upgrade-plan": "Upgrade plan", + "vote-end": "Vote end (gmt)", + "vote-fail-error": "For some reason your vote failed.", + "vote-in-progress": "Vote in progress", + "vote-option-abstain": "Abstain", + "vote-option-no": "No", + "vote-option-veto": "Veto", + "vote-option-yes": "Yes", + "vote-start": "Vote start (gmt)", + "vote-will-count": "Your vote will be counted!!!", + "voting-end": "Voting end", + "your-balance": "Your balance: {{balance}} {{symbol}}" + }, "main": {}, "staking": { "attention-withdrawal-warning": "Attention! If in the future you want to withdraw the staked funds, it will take {{count}} day{count, plural, one {} other {s}}", diff --git a/apps/shell/src/components/locale-dropdown.tsx b/apps/shell/src/components/locale-dropdown.tsx index 7c1cff9b7..5f4d64bf0 100644 --- a/apps/shell/src/components/locale-dropdown.tsx +++ b/apps/shell/src/components/locale-dropdown.tsx @@ -1,5 +1,5 @@ -import { useLocaleSwitcher } from '../hooks/use-locale-switcher'; import { LocaleDropdown } from '@haqq/shell-ui-kit'; +import { useLocaleSwitcher } from '../hooks/use-locale-switcher'; export function AppLocaleDropdown() { const { switchLocale, locales, currentLocale } = useLocaleSwitcher(); diff --git a/libs/governance/src/index.ts b/libs/governance/src/index.ts index 5873e7a12..dfc96009f 100644 --- a/libs/governance/src/index.ts +++ b/libs/governance/src/index.ts @@ -1,3 +1,4 @@ export * from './lib/proposal-list-page'; export * from './lib/proposal-details-page'; export * from './lib/components/proposal-list-card'; +export * from './lib/hooks/useGetProposalTypeText'; diff --git a/libs/governance/src/lib/components/parameter-change-proposal.tsx b/libs/governance/src/lib/components/parameter-change-proposal.tsx index cceb252a7..193872130 100644 --- a/libs/governance/src/lib/components/parameter-change-proposal.tsx +++ b/libs/governance/src/lib/components/parameter-change-proposal.tsx @@ -1,4 +1,5 @@ import { ParameterChangeProposalContent } from '@evmos/provider'; +import { useTranslate } from '@tolgee/react'; import { Heading } from '@haqq/shell-ui-kit/server'; import { Metadata } from './metadata'; @@ -7,6 +8,7 @@ export function ParameterChangeProposalDetails({ }: { content: ParameterChangeProposalContent; }) { + const { t } = useTranslate('governance'); return (