+ {t('vote-will-count', 'Your vote will be counted!!!')}
+
{
console.error(error);
- return For some reason your vote failed.;
+ return (
+
+ {t('vote-fail-error', 'For some reason your vote failed.')}
+
+ );
},
});
posthog.capture('vote success', { chainId });
@@ -1012,6 +997,7 @@ export function VoteActions({
memo,
posthog,
proposalId,
+ t,
toast,
vote,
],
@@ -1024,9 +1010,14 @@ export function VoteActions({
return (
- Cast your vote
+
+ {t('cast-vote', 'Cast your vote')}
+
- You can change your vote while the voting is in progress
+ {t(
+ 'change-vote-message',
+ 'You can change your vote while the voting is in progress',
+ )}
@@ -1197,11 +1196,12 @@ export function DepositInput({
value: number | undefined;
disabled?: boolean;
}) {
+ const { t } = useTranslate('governance');
return (
- If the proposal does not collect the required number of deposits in a
- certain time, it will reject
+ {t(
+ 'proposal-deposit-alert',
+ 'If the proposal does not collect the required number of deposits in a certain time, it will reject',
+ )}
);
}
diff --git a/libs/governance/src/lib/proposal-list-page.tsx b/libs/governance/src/lib/proposal-list-page.tsx
index 5c96bb157..cb09e777d 100644
--- a/libs/governance/src/lib/proposal-list-page.tsx
+++ b/libs/governance/src/lib/proposal-list-page.tsx
@@ -1,6 +1,7 @@
'use client';
import { useMemo } from 'react';
import { ProposalStatus } from '@evmos/provider';
+import { useTranslate } from '@tolgee/react';
import Link from 'next/link';
import {
useAddress,
@@ -14,6 +15,7 @@ import { Container, SpinnerLoader } from '@haqq/shell-ui-kit/server';
import { ProposalListCard } from './components/proposal-list-card';
export function ProposalListPage() {
+ const { t } = useTranslate();
const { data: govParams } = useGovernanceParamsQuery();
const { data: proposalsData } = useProposalListQuery();
const symbol = 'ISLM';
@@ -98,7 +100,7 @@ export function ProposalListPage() {