diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-13 11:07:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-13 11:09:04 -0300 |
commit | f9f2911c761af1c8ed1c323dcd414cbaa9eeae7c (patch) | |
tree | 13659dc1fda0d9e4d745bc416f894a5a90d81e75 /packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx | |
parent | d9bc32e0d1358c78449eb3da48e26e2ead873050 (diff) | |
download | wallet-core-f9f2911c761af1c8ed1c323dcd414cbaa9eeae7c.tar.xz |
adding missing i18n
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx index 161296b97..7d2e15726 100644 --- a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx +++ b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx @@ -15,11 +15,11 @@ */ import { css } from "@linaria/core"; import { Fragment, h, VNode } from "preact"; +import { useTranslationContext } from "../context/translation.js"; import { Alert } from "../mui/Alert.js"; import { Button } from "../mui/Button.js"; import { ButtonHandler } from "../mui/handlers.js"; import { Paper } from "../mui/Paper.js"; -import { Typography } from "../mui/Typography.js"; const margin = css` margin: 1em; @@ -30,6 +30,7 @@ export function NoBalanceHelp({ }: { goToWalletManualWithdraw: ButtonHandler; }): VNode { + const { i18n } = useTranslationContext(); return ( <Paper class={margin}> <Alert title="Your wallet is empty." severity="info"> @@ -39,7 +40,7 @@ export function NoBalanceHelp({ variant="outlined" onClick={goToWalletManualWithdraw.onClick} > - <Typography>Get digital cash</Typography> + <i18n.Translate>Get digital cash</i18n.Translate> </Button> </Alert> </Paper> |