feat: add i18next for arm (#17)
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good

This commit is contained in:
2024-11-09 18:52:38 +03:00
parent 413181617b
commit d7da2b5618
8 changed files with 78 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
import { Box, Button, Heading, VStack } from '@chakra-ui/react';
import React from 'react';
import { Divider } from '@chakra-ui/react';
import i18next from 'i18next';
const Sidebar = ({ onSelectPage }) => (
<Box
borderRight='1px solid black'
@@ -12,7 +12,7 @@ const Sidebar = ({ onSelectPage }) => (
pt='8'
>
<Heading color='green' size='lg' mb='5'>
Сухой мастер
{i18next.t(`dry-wash.arm.master.sideBar.title`)}
</Heading>
<VStack align='start' spacing='4'>
@@ -23,7 +23,7 @@ const Sidebar = ({ onSelectPage }) => (
colorScheme='green'
variant='ghost'
>
Заказы
{i18next.t(`dry-wash.arm.master.sideBar.title.orders`)}
</Button>
<Divider />
<Button
@@ -32,7 +32,7 @@ const Sidebar = ({ onSelectPage }) => (
colorScheme='green'
variant='ghost'
>
Мастера
{i18next.t(`dry-wash.arm.master.sideBar.title.master`)}
</Button>
<Divider />
</VStack>