diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/walletEntryPoint.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/walletEntryPoint.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx index 16912b2a7..f2240cdf1 100644 --- a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx +++ b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx @@ -17,7 +17,7 @@ /** * Main entry point for extension pages. * - * @author Florian Dold <dold@taler.net> + * @author sebasjm <dold@taler.net> */ import { i18n, setupI18n } from "@gnu-taler/taler-util"; @@ -35,6 +35,7 @@ import { } from "./components/styled"; import { DevContextProvider } from "./context/devContext"; import { IoCProviderForRuntime } from "./context/iocContext"; +import { TranslationProvider } from "./context/translation"; import { PayPage } from "./cta/Pay"; import { RefundPage } from "./cta/Refund"; import { TipPage } from "./cta/Tip"; @@ -78,7 +79,7 @@ if (document.readyState === "loading") { function Application(): VNode { const [globalNotification, setGlobalNotification] = useState< - string | undefined + VNode | undefined >(undefined); const hash_history = createHashHistory(); function clearNotification(): void { @@ -93,7 +94,7 @@ function Application(): VNode { } } return ( - <div> + <TranslationProvider> <DevContextProvider> {({ devMode }: { devMode: boolean }) => ( <IoCProviderForRuntime> @@ -169,7 +170,9 @@ function Application(): VNode { onSuccess={(currency: string) => { route(Pages.balance_history.replace(":currency", currency)); setGlobalNotification( - "All done, your transaction is in progress", + <i18n.Translate> + All done, your transaction is in progress + </i18n.Translate>, ); }} /> @@ -260,7 +263,7 @@ function Application(): VNode { </IoCProviderForRuntime> )} </DevContextProvider> - </div> + </TranslationProvider> ); } |