feat: add translations to landing (#18)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user