import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { I18nProvider } from "@lingui/react";

import App from "./App.tsx";
import { i18n, loadCatalog } from "./i18n.ts";

import "./index.css";
import "./themes/smooth.css";
import "./themes/brutalist.css";

await loadCatalog();

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <I18nProvider i18n={i18n}>
      <App />
    </I18nProvider>
  </StrictMode>,
);
