feat: add i18next (#11)

This commit is contained in:
2024-11-03 12:52:50 +03:00
parent 7ff8a99505
commit 9a490bd993
6 changed files with 50 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ import {
import { mastersData } from '../../mocks';
import MasterItem from '../MasterItem';
import MasterDrawer from '../MasterModal';
import i18next from 'i18next';
const TABLE_HEADERS = ['Имя', 'Актуальная занятость', 'Телефон', 'Действия'];
@@ -25,7 +26,7 @@ const Masters = () => {
<Flex justifyContent='space-between' alignItems='center' mb='5'>
<Heading size='lg'>Мастера</Heading>
<Button colorScheme='green' onClick={onOpen}>
+ Добавить
+ {i18next.t('dry-wash.arm.masters.add')}
</Button>
</Flex>
<Table variant='simple' colorScheme='blackAlpha'>