7dc8a49a8d
- package.json -> Imported packages i18next & react-i18next for multilingual functionality. - src/App.jsx -> Imported LanguageSwitcher from ./components/LanguageSwitcher and added <LanguageSwitcher /> component at the beginning of layout so it's always visible. - src/components/LanguageSwitcher.jsx -> LanguageSwitcher component, consists of a dropdown menu that always appears at top right corner for choosing language. - src/i18n.js -> Initialize and configure i18next for app-wide multilingual support. - src/locales/en.json + src/locales/fr.json -> Empty json files that will soon contain translation key:value pairs for each page. - src/main.jsx -> Imported src/i18n.js for multilingual functionality.
19 lines
459 B
React
19 lines
459 B
React
import './i18n'; // for multilingual functionality
|
|
|
|
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import "./index.css";
|
|
import App from "./App.jsx";
|
|
import { Provider } from "react-redux";
|
|
import { store } from "./store/store";
|
|
|
|
const container = document.getElementById("root");
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<StrictMode>
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
</StrictMode>
|
|
);
|