diff --git a/packages/chakra-components/src/components/Account/Balance.tsx b/packages/chakra-components/src/components/Account/Balance.tsx index dd3fbca6..249cb582 100644 --- a/packages/chakra-components/src/components/Account/Balance.tsx +++ b/packages/chakra-components/src/components/Account/Balance.tsx @@ -2,7 +2,7 @@ import { Tag, TagProps } from '@chakra-ui/tag' import { useClient } from '@vocdoni/react-providers' export const Balance = (props: TagProps) => { - const { balance } = useClient() + const { balance, localize } = useClient() if (balance < 0) { return null @@ -17,7 +17,7 @@ export const Balance = (props: TagProps) => { return ( - {balance} votokens + {localize('balance', { balance })} ) } diff --git a/packages/chakra-components/src/i18n/locales.ts b/packages/chakra-components/src/i18n/locales.ts index 8eb11e93..67604f9f 100644 --- a/packages/chakra-components/src/i18n/locales.ts +++ b/packages/chakra-components/src/i18n/locales.ts @@ -16,6 +16,7 @@ export const locales = { 'Pause the voting process temporarily, until resumed manually. While the process is paused, voters cannot submit votes.', waiting_title: 'Waiting for transaction confirmation...', }, + balance: '{{ balance }} VOC tokens', confirm: { title: 'Confirm', cancel: 'Cancel',