aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/Refund.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-02-23 15:18:37 -0300
committerSebastian <sebasjm@gmail.com>2022-02-24 12:50:51 -0300
commit41850c9f14baa5330919c6dabf161b1aaeda7376 (patch)
tree678125e50206ca3f51a6051257a94644044f456a /packages/taler-wallet-webextension/src/cta/Refund.tsx
parent7647d077e7d9a5581e3ce919da936bc5d22a4df2 (diff)
downloadwallet-core-41850c9f14baa5330919c6dabf161b1aaeda7376.tar.xz
add i18n where was missing
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Refund.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Refund.tsx44
1 files changed, 32 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Refund.tsx b/packages/taler-wallet-webextension/src/cta/Refund.tsx
index cecd1ac00..ec32cc37a 100644
--- a/packages/taler-wallet-webextension/src/cta/Refund.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Refund.tsx
@@ -17,10 +17,10 @@
/**
* Page that shows refund status for purchases.
*
- * @author Florian Dold
+ * @author sebasjm
*/
-import { Amounts, ApplyRefundResponse } from "@gnu-taler/taler-util";
+import { Amounts, ApplyRefundResponse, Translate } from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useEffect, useState } from "preact/hooks";
import { AmountView } from "../renderHtml";
@@ -37,20 +37,28 @@ export function View({ applyResult }: ViewProps): VNode {
<section class="main">
<h1>GNU Taler Wallet</h1>
<article class="fade">
- <h2>Refund Status</h2>
+ <h2>
+ <Translate>Refund Status</Translate>
+ </h2>
<p>
- The product <em>{applyResult.info.summary}</em> has received a total
- effective refund of{" "}
+ <Translate>
+ The product <em>{applyResult.info.summary}</em> has received a total
+ effective refund of{" "}
+ </Translate>
<AmountView amount={applyResult.amountRefundGranted} />.
</p>
{applyResult.pendingAtExchange ? (
- <p>Refund processing is still in progress.</p>
+ <p>
+ <Translate>Refund processing is still in progress.</Translate>
+ </p>
) : null}
{!Amounts.isZero(applyResult.amountRefundGone) ? (
<p>
- The refund amount of{" "}
- <AmountView amount={applyResult.amountRefundGone} /> could not be
- applied.
+ <Translate>
+ The refund amount of{" "}
+ <AmountView amount={applyResult.amountRefundGone} /> could not be
+ applied.
+ </Translate>
</p>
) : null}
</article>
@@ -82,15 +90,27 @@ export function RefundPage({ talerRefundUri }: Props): VNode {
console.log("rendering");
if (!talerRefundUri) {
- return <span>missing taler refund uri</span>;
+ return (
+ <span>
+ <Translate>missing taler refund uri</Translate>
+ </span>
+ );
}
if (errMsg) {
- return <span>Error: {errMsg}</span>;
+ return (
+ <span>
+ <Translate>Error: {errMsg}</Translate>
+ </span>
+ );
}
if (!applyResult) {
- return <span>Updating refund status</span>;
+ return (
+ <span>
+ <Translate>Updating refund status</Translate>
+ </span>
+ );
}
return <View applyResult={applyResult} />;