feat: add i18next for arm (#17)
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user