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,8 +1,11 @@
import React, { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { Text } from '@chakra-ui/react';
const currentYear = new Date().getFullYear();
export const Copyright: FC = () => {
return <Text color='whiteAlpha.500'>&copy; {currentYear} DryMaster. Все права защищены</Text>;
const { t } = useTranslation();
return <Text color='whiteAlpha.500'>{t('dry-wash.landing.footer.copyright', { currentYear })}</Text>;
};