summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/BackupPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/BackupPage.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/BackupPage.tsx27
1 files changed, 20 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/BackupPage.tsx b/packages/taler-wallet-webextension/src/wallet/BackupPage.tsx
index daea9e3bd..a5821d48b 100644
--- a/packages/taler-wallet-webextension/src/wallet/BackupPage.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/BackupPage.tsx
@@ -14,7 +14,7 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import { i18n, Timestamp } from "@gnu-taler/taler-util";
+import { i18n, Timestamp, Translate } from "@gnu-taler/taler-util";
import {
ProviderInfo,
ProviderPaymentPaid,
@@ -71,7 +71,10 @@ export function BackupPage({ onAddProvider }: Props): VNode {
}
if (status.hasError) {
return (
- <LoadingError title="Could not load backup providers" error={status} />
+ <LoadingError
+ title={<i18n.Translate>Could not load backup providers</i18n.Translate>}
+ error={status}
+ />
);
}
@@ -122,7 +125,9 @@ export function BackupView({
))}
{!providers.length && (
<Centered style={{ marginTop: 100 }}>
- <BoldLight>No backup providers configured</BoldLight>
+ <BoldLight>
+ <i18n.Translate>No backup providers configured</i18n.Translate>
+ </BoldLight>
<ButtonSuccess onClick={onAddProvider}>
<i18n.Translate>Add provider</i18n.Translate>
</ButtonSuccess>
@@ -140,7 +145,9 @@ export function BackupView({
<i18n.Translate>Sync now</i18n.Translate>
)}
</ButtonPrimary>
- <ButtonSuccess onClick={onAddProvider}>Add provider</ButtonSuccess>
+ <ButtonSuccess onClick={onAddProvider}>
+ <i18n.Translate>Add provider</i18n.Translate>
+ </ButtonSuccess>
</div>
</footer>
)}
@@ -176,10 +183,14 @@ function BackupLayout(props: TransactionLayoutProps): VNode {
</a>
{dateStr && (
- <SmallText style={{ marginTop: 5 }}>Last synced: {dateStr}</SmallText>
+ <SmallText style={{ marginTop: 5 }}>
+ <i18n.Translate>Last synced</i18n.Translate>: {dateStr}
+ </SmallText>
)}
{!dateStr && (
- <SmallLightText style={{ marginTop: 5 }}>Not synced</SmallLightText>
+ <SmallLightText style={{ marginTop: 5 }}>
+ <i18n.Translate>Not synced</i18n.Translate>
+ </SmallLightText>
)}
</div>
<div>
@@ -196,7 +207,9 @@ function BackupLayout(props: TransactionLayoutProps): VNode {
function ExpirationText({ until }: { until: Timestamp }): VNode {
return (
<Fragment>
- <CenteredText> Expires in </CenteredText>
+ <CenteredText>
+ <i18n.Translate>Expires in</i18n.Translate>
+ </CenteredText>
<CenteredBoldText {...{ color: colorByTimeToExpire(until) }}>
{" "}
{daysUntil(until)}{" "}