fix(auth): i18n и react-hook-form на странице логина

Добавлены i18next, схема zod и react-hook-form для формы входа.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 17:54:00 +03:00
parent 755d22cf48
commit fd825ddfd7
8 changed files with 2865 additions and 66 deletions
+5 -9
View File
@@ -1,17 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import dayjs from 'dayjs';
import 'dayjs/locale/ru';
import locale from 'antd/locale/ru_RU';
import { ConfigProvider } from 'antd';
import App from './App';
dayjs.locale('ru');
import './i18n';
import LocaleProvider from './components/LocaleProvider';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<ConfigProvider locale={locale}>
<LocaleProvider>
<App />
</ConfigProvider>
</LocaleProvider>
</React.StrictMode>
);
);