Skip to content

Commit

Permalink
votokens should be VOC tokens
Browse files Browse the repository at this point in the history
closes #112
  • Loading branch information
elboletaire committed Nov 6, 2023
1 parent c1f12c8 commit 8139cab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/chakra-components/src/components/Account/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,7 +17,7 @@ export const Balance = (props: TagProps) => {

return (
<Tag size='sm' colorScheme={color} {...props}>
{balance} votokens
{localize('balance', { balance })}
</Tag>
)
}
1 change: 1 addition & 0 deletions packages/chakra-components/src/i18n/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8139cab

Please sign in to comment.