feat: add en language

This commit is contained in:
2025-04-24 16:59:18 +05:00
parent dc1b74348f
commit 53729813ff
10 changed files with 158 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
import { Drawer } from 'antd';
import { useEffect, useState } from 'react';
import { Avatar, Typography } from 'antd';
import { useTranslation } from 'react-i18next';
interface ContentDrawerProps {
open: boolean;
@@ -15,6 +16,7 @@ export default function ContentDrawer({
children,
type,
}: ContentDrawerProps) {
const { t } = useTranslation();
const [width, setWidth] = useState<number | string>('30%');
const calculateWidths = () => {
@@ -123,7 +125,7 @@ export default function ContentDrawer({
fontSize: '20px',
}}
>
Новая учетная запись
{t('newAccount')}
</div>
<div
@@ -133,6 +135,7 @@ export default function ContentDrawer({
height: '24px',
width: '24px',
}}
onClick={closeDrawer}
>
<img
src="./icons/drawer/delete.svg"