fix: translations

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-15 14:15:46 +01:00
parent 73224021d6
commit 67e092ff1c

View File

@@ -117,7 +117,7 @@ export default function Hero() {
if (tool === undefined) { if (tool === undefined) {
return []; return [];
} }
return [tool]; return [{ ...tool, label: t(tool.label) }];
}) })
: exampleTools; : exampleTools;
@@ -189,9 +189,9 @@ export default function Hero() {
<Stack direction={'row'} spacing={2} alignItems={'center'}> <Stack direction={'row'} spacing={2} alignItems={'center'}>
<Icon fontSize={20} icon={option.icon} /> <Icon fontSize={20} icon={option.icon} />
<Box> <Box>
<Typography fontWeight={'bold'}>{option.name}</Typography> <Typography fontWeight={'bold'}>{t(option.name)}</Typography>
<Typography fontSize={12}> <Typography fontSize={12}>
{option.shortDescription} {t(option.shortDescription)}
</Typography> </Typography>
</Box> </Box>
</Stack> </Stack>