feat: add translations to landing (#18)
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
RustamRu
2024-11-16 22:43:51 +03:00
parent 752fe72786
commit c92c879b31
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