Skip to content

Commit

Permalink
i18n: Change en translation of donationsAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Apr 22, 2024
1 parent 966ea51 commit 35c2623
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"campaignType": "Campaign type",
"description": "Description",
"targetAmount": "Target amount",
"donationsAmount": "Donations amount",
"donationsAmount": "Reached Amount",
"blockedAmount": "Blocked amount",
"withdrawnAmount": "Withdrawn amount",
"startDate": "Start date",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
<StyledContent>
<SumWrapper id={`${index}--summary`}>
<Sum>
<Typography variant="hidden">Reached amount</Typography>
<Typography variant="hidden">{t('donationsAmount')}</Typography>
<SumNumber>
{i18n?.language === 'bg'
? reachedAmount.split(',')[0] + ' лв.'
: reachedAmount.split('.')[0]}
</SumNumber>
</Sum>
<Sum>
<Typography variant="hidden">Target amount</Typography>
<Typography variant="hidden">{t('targetAmount')}</Typography>
<SumNumber>
{i18n?.language === 'bg'
? targetAmount.split(',')[0] + ' лв.'
Expand Down
2 changes: 0 additions & 2 deletions src/components/client/layout/nav/MainNavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function MainNavMenu({ children }: { children?: React.ReactNode }
const { t } = useTranslation()

return (
// <Grid container direction="row" wrap="nowrap" alignItems="baseline" spacing={4}>
<>
<Grid item component={'li'}>
<LinkButton
Expand All @@ -38,7 +37,6 @@ export default function MainNavMenu({ children }: { children?: React.ReactNode }
<DevelopmentMenu />
</Grid> */}
{children}
{/* </Grid> */}
</>
)
}

0 comments on commit 35c2623

Please sign in to comment.