import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import { initI18n, getPolarisTranslations } from "./i18nUtils";
import { AppProvider } from "@shopify/polaris";
import "@shopify/polaris/build/esm/styles.css";
import enTranslations from "@shopify/polaris/locales/en.json";
import React from "react";
import ReactDOM from "react-dom/client";
//import { BrowserRouter } from "react-router-dom";
import App from "./App";
const root = document.getElementById("root");
if (!root) throw new Error("#root element not found for booting react app");
const translations = getPolarisTranslations();
const shopId = localStorage.getItem('shopId');
initI18n().then(() => {
ReactDOM.createRoot(root).render(
<React.StrictMode>
<AppProvider i18n={translations}>
<App shopId={shopId} />
</AppProvider>
</React.StrictMode>
);
});
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import { initI18n, getPolarisTranslations } from "./i18nUtils";
import { AppProvider } from "@shopify/polaris";
import "@shopify/polaris/build/esm/styles.css";
import enTranslations from "@shopify/polaris/locales/en.json";
import React from "react";
import ReactDOM from "react-dom/client";
//import { BrowserRouter } from "react-router-dom";
import App from "./App";
const root = document.getElementById("root");
if (!root) throw new Error("#root element not found for booting react app");
const translations = getPolarisTranslations();
const shopId = localStorage.getItem('shopId');
initI18n().then(() => {
ReactDOM.createRoot(root).render(
<React.StrictMode>
<AppProvider i18n={translations}>
<App shopId={shopId} />
</AppProvider>
</React.StrictMode>
);
});