Добавлены новые зависимости: "react-select" и "@floating-ui/core". Реализована локализация с использованием i18next, добавлены переводы для английского и русского языков. Обновлены компоненты для поддержки локализации, включая AppHeader, Attendance, Dashboard и другие. Улучшена логика отображения данных и взаимодействия с пользователем.
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
/* eslint-disable react/display-name */
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
|
||||
import i18next from 'i18next'
|
||||
import { i18nextReactInitConfig } from '@brojs/cli';
|
||||
|
||||
import App from './app';
|
||||
import { keycloak } from "./__data__/kc";
|
||||
import { createStore } from "./__data__/store";
|
||||
|
||||
i18next.t = i18next.t.bind(i18next)
|
||||
const i18nextPromise = i18nextReactInitConfig(i18next)
|
||||
|
||||
if(!module.hot) {
|
||||
import('./ym');
|
||||
}
|
||||
@@ -31,6 +36,7 @@ export const mount = async (Component, element = document.getElementById('app'))
|
||||
keycloak.login()
|
||||
}
|
||||
const store = createStore({ user });
|
||||
await i18nextPromise
|
||||
|
||||
rootElement = ReactDOM.createRoot(element);
|
||||
rootElement.render(<Component store={store} />);
|
||||
|
||||
Reference in New Issue
Block a user