fix(auth): i18n и react-hook-form на странице логина
Добавлены i18next, схема zod и react-hook-form для формы входа. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-9
@@ -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>
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user