feat: add translations to landing (#18)

This commit is contained in:
RustamRu
2024-11-16 22:43:51 +03:00
parent 425a47b33c
commit 3cdb9a997e
11 changed files with 84 additions and 46 deletions

View File

@@ -1,10 +1,12 @@
import React, { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Image } from '@chakra-ui/react';
import { LogoSvg } from '../../../assets/icons';
export const SiteLogo: FC = () => {
return <Image src={LogoSvg} alt='Логотип компании "Сухой мастер"' w={40} />;
const { t } = useTranslation();
return <Image src={LogoSvg} alt={t('dry-wash.landing.site-logo')} w={40} />;
};
// todo: add i18n for alt
// todo: replace Image by SVG React component
// todo: replace Image by SVG React component