From 41850c9f14baa5330919c6dabf161b1aaeda7376 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 23 Feb 2022 15:18:37 -0300 Subject: add i18n where was missing --- .../src/popup/DeveloperPage.tsx | 119 ++++++++++++++------- 1 file changed, 79 insertions(+), 40 deletions(-) (limited to 'packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx') diff --git a/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx index 3326be8df..b3da48a93 100644 --- a/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx +++ b/packages/taler-wallet-webextension/src/popup/DeveloperPage.tsx @@ -20,6 +20,8 @@ import { CoinDumpJson, ExchangeListItem, NotificationType, + Translate, + i18n, } from "@gnu-taler/taler-util"; import { PendingTaskInfo } from "@gnu-taler/taler-wallet-core"; import { format } from "date-fns"; @@ -31,7 +33,6 @@ import { Time } from "../components/Time"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook"; import { useDiagnostics } from "../hooks/useDiagnostics"; import * as wxApi from "../wxApi"; -import BalanceStories from "./Balance.stories"; export function DeveloperPage(): VNode { const [status, timedOut] = useDiagnostics(); @@ -149,10 +150,16 @@ export function View({ return (
-

Debug tools:

- +

+ Debug tools: +

+
- +
- + {downloadedDatabase && (
- Database exported at -
)}
-

Coins:

+

+ Coins: +

{Object.keys(money_by_exchange).map((ex) => { const allcoins = money_by_exchange[ex]; allcoins.sort((a, b) => { @@ -220,7 +232,9 @@ export function View({ {operations && operations.length > 0 && ( -

Pending operations

+

+ Pending operations +

{operations.reverse().map((o) => { return ( @@ -257,18 +271,30 @@ function ShowAllCoins({ {ex}: {total} {currencies[ex]}

- usable coins + + usable coins +

{collapsedUnspent ? (
setCollapsedUnspent(false)}>click to show
) : ( setCollapsedUnspent(true)}> - - - - - + + + + + {coins.usable.map((c) => { return ( @@ -283,17 +309,31 @@ function ShowAllCoins({ })}
iddenomvaluestatusfrom refresh? + id + + denom + + value + + status + + from refresh? +
)} -

spent coins

+

+ spent coins +

{collapsedSpent ? ( -
setCollapsedSpent(false)}>click to show
+
setCollapsedSpent(false)}> + click to show +
) : ( setCollapsedSpent(true)}> - - - - - + + + + + {coins.spent.map((c) => { return ( @@ -335,8 +375,7 @@ function runIntegrationTest() {} export async function confirmReset(): Promise { if ( confirm( - "Do you want to IRREVOCABLY DESTROY everything inside your" + - " wallet and LOSE ALL YOUR COINS?", + i18n.str`Do you want to IRREVOCABLY DESTROY everything inside your wallet and LOSE ALL YOUR COINS?`, ) ) { await wxApi.resetDb(); -- cgit v1.2.3
iddenomvaluestatusrefresh? + id + + denom + + value + + status + + from refresh? +