From 68b887344289902273f0e0591e1038182ca4da77 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 24 Feb 2022 12:41:47 -0300 Subject: added ja lang and implemented transalation switch --- .../src/popupEntryPoint.tsx | 175 +++++++++++---------- 1 file changed, 89 insertions(+), 86 deletions(-) (limited to 'packages/taler-wallet-webextension/src/popupEntryPoint.tsx') diff --git a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx index e37ea9ccb..02ab0df2c 100644 --- a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx +++ b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx @@ -29,6 +29,7 @@ import { useEffect } from "preact/hooks"; import { PopupBox } from "./components/styled"; import { DevContextProvider } from "./context/devContext"; import { IoCProviderForRuntime } from "./context/iocContext"; +import { TranslationProvider } from "./context/translation"; import { useTalerActionURL } from "./hooks/useTalerActionURL"; import { strings } from "./i18n/strings"; import { Pages, PopupNavBar } from "./NavigationBar"; @@ -77,92 +78,94 @@ function CheckTalerActionComponent(): VNode { function Application(): VNode { const hash_history = createHashHistory(); return ( - //
- - {({ devMode }: { devMode: boolean }) => ( - - - {({ path }: { path: string }) => } - - - - - - route(Pages.balance_manual_withdraw.replace(":currency?", "")) - } - goToWalletDeposit={(currency: string) => - route(Pages.balance_deposit.replace(":currency", currency)) - } - goToWalletHistory={(currency: string) => - route(Pages.balance_history.replace(":currency", currency)) - } - /> - - { - setDismissed(true); - route(Pages.balance); - }} - /> - ); - }} - /> - - { - route(Pages.backup_provider_add); - }} - /> - { - route(Pages.backup); - }} - /> - - - - - - - - - - - - - - )} - - //
+ + + {({ devMode }: { devMode: boolean }) => ( + + + {({ path }: { path: string }) => } + + + + + + route( + Pages.balance_manual_withdraw.replace(":currency?", ""), + ) + } + goToWalletDeposit={(currency: string) => + route(Pages.balance_deposit.replace(":currency", currency)) + } + goToWalletHistory={(currency: string) => + route(Pages.balance_history.replace(":currency", currency)) + } + /> + + { + setDismissed(true); + route(Pages.balance); + }} + /> + ); + }} + /> + + { + route(Pages.backup_provider_add); + }} + /> + { + route(Pages.backup); + }} + /> + + + + + + + + + + + + + + )} + + ); } -- cgit v1.2.3