import { createInstance } from "i18next"; import { I18nextProvider, initReactI18next } from "react-i18next"; import { beforeMount } from "@playwright/experimental-ct-react/hooks"; import deBilling from "../apps/web/public/locales/de/billing.json"; import deTranslations from "../apps/web/public/locales/de/translations.json"; import "../apps/web/app/globals.css"; import "./visual-test.css"; const i18n = createInstance(); const i18nReady = i18n.use(initReactI18next).init({ defaultNS: "translations", fallbackLng: "de", interpolation: { escapeValue: false }, lng: "de", ns: ["translations", "billing"], resources: { de: { billing: deBilling, translations: deTranslations, }, }, }); beforeMount(async ({ App }) => { await i18nReady; document.documentElement.classList.remove("dark"); document.documentElement.lang = "de"; document.documentElement.style.colorScheme = "light"; document.body.classList.remove("dark"); return ( ); });