diff --git a/govtool/frontend/src/context/wallet.tsx b/govtool/frontend/src/context/wallet.tsx index c1e32095c..e8b240792 100644 --- a/govtool/frontend/src/context/wallet.tsx +++ b/govtool/frontend/src/context/wallet.tsx @@ -515,7 +515,7 @@ function CardanoProvider(props: Props) { const enable = useCallback( async (walletName: string) => { - await checkIsMaintenanceOn(); + // await checkIsMaintenanceOn(); // todo: use .getSupportedExtensions() to check if wallet supports CIP-95 if (!isEnabled && walletName) { diff --git a/src/vva-fe/src/translations/i18n.ts b/govtool/frontend/src/i18n/index.ts similarity index 99% rename from src/vva-fe/src/translations/i18n.ts rename to govtool/frontend/src/i18n/index.ts index aa3a28745..035c38ccc 100644 --- a/src/vva-fe/src/translations/i18n.ts +++ b/govtool/frontend/src/i18n/index.ts @@ -1,5 +1,6 @@ import i18n from "i18next"; import { initReactI18next } from "react-i18next"; + import { en } from "./locales/en"; i18n.use(initReactI18next).init({ diff --git a/src/vva-fe/src/translations/locales/en.ts b/govtool/frontend/src/i18n/locales/en.ts similarity index 100% rename from src/vva-fe/src/translations/locales/en.ts rename to govtool/frontend/src/i18n/locales/en.ts diff --git a/govtool/frontend/src/main.tsx b/govtool/frontend/src/main.tsx index 3d5c8b1ba..6997c7a12 100644 --- a/govtool/frontend/src/main.tsx +++ b/govtool/frontend/src/main.tsx @@ -1,9 +1,5 @@ import React from "react"; import ReactDOM from "react-dom/client"; -import App from "./App.tsx"; -import { ThemeProvider } from "@emotion/react"; -import { ContextProviders } from "@context"; -import { theme } from "./theme.ts"; import { BrowserRouter, createRoutesFromChildren, @@ -12,9 +8,15 @@ import { useNavigationType, } from "react-router-dom"; import { QueryClient, QueryClientProvider } from "react-query"; -import * as Sentry from "@sentry/react"; import TagManager from "react-gtm-module"; -import "./translations/i18n"; +import { ThemeProvider } from "@emotion/react"; +import * as Sentry from "@sentry/react"; + +import { ContextProviders } from "@context"; + +import App from "./App.tsx"; +import { theme } from "./theme.ts"; +import "./i18n"; const queryClient = new QueryClient(); diff --git a/govtool/frontend/src/types/i18next.d.ts b/govtool/frontend/src/types/i18next.d.ts index 80d7588d2..a6063604e 100644 --- a/govtool/frontend/src/types/i18next.d.ts +++ b/govtool/frontend/src/types/i18next.d.ts @@ -1,4 +1,4 @@ -import { en } from "@/translations/locales/en"; +import { en } from "@/i18n/locales/en"; declare module "i18next" { interface CustomTypeOptions {