import React, { Suspense } from "react"; import ReactDOM from "react-dom"; import reportWebVitals from "./reportWebVitals"; import "bootstrap/dist/css/bootstrap.min.css"; import "flag-icon-css/css/flag-icon.min.css"; import i18n from "i18next"; import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedetector"; import HttpApi from "i18next-http-backend"; import "./index.css"; import App from "./App"; i18n .use(initReactI18next) // passes i18n down to react-i18next .use(LanguageDetector) .use(HttpApi) .init({ // lng: "en", supportedLngs: ["en", "fr"], fallbackLng: "en", detection: { // "querystring", order: ["cookie", "htmlTag", "localStorage", "path", "subdomain"], caches: ["cookie"], }, backend: { loadPath: "/assets/locales/{{lng}}/translations.json", }, react: { useSuspense: false, }, }); const loadingMsg = (