From 8139cabeb1e09a75e64c39bf3861943b627063ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=92scar=20Casajuana?= Date: Mon, 6 Nov 2023 13:30:07 +0100 Subject: [PATCH] votokens should be VOC tokens closes #112 --- packages/chakra-components/src/components/Account/Balance.tsx | 4 ++-- packages/chakra-components/src/i18n/locales.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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',