From f6782b7290b2a315139c07bb081642b7e482ae0c Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Fri, 19 Aug 2022 12:05:20 -0500 Subject: Extracted all remaining strings to en.json - Changed SATS to SAT, and hours to hr to be more international - Edited conversion fee warning because it was incorrect (you only pay a fee if you're converting between BTC<->Liquid<->Lightning) --- src/routes/+error.svelte | 5 ++- src/routes/[username]/+page.svelte | 7 +-- src/routes/[username]/dashboard/+page.svelte | 20 +++++---- src/routes/[username]/receive/+page.svelte | 11 ++--- src/routes/[username]/settings/+page.svelte | 57 ++++++++++++------------- src/routes/[username]/support/+page.svelte | 11 ++--- src/routes/[username]/transactions/+page.svelte | 15 ++++--- 7 files changed, 66 insertions(+), 60 deletions(-) (limited to 'src/routes') diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index e555a032..2a8846c3 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -1,6 +1,7 @@ {#if $page.error.message.includes('not found') || $page.status === 404} @@ -14,9 +15,9 @@ -

Error

+

{$_('error.header'), { default: "Error" }}

{$page.error.message.toUpperCase()}

-

Please try again or contact support.

+

{$_('error.message'), { default: "Please try again or contact support." }}

{/if} diff --git a/src/routes/[username]/+page.svelte b/src/routes/[username]/+page.svelte index 973e8798..f22bd218 100644 --- a/src/routes/[username]/+page.svelte +++ b/src/routes/[username]/+page.svelte @@ -4,6 +4,7 @@ import { AppHeader, Icon, PageNotFound } from '$comp'; import { user } from '$lib/store'; import { copy } from '$lib/utils'; + import { _ } from 'svelte-i18n'; export let data; $: ({ username } = data); @@ -43,7 +44,7 @@

{username}

-

Address goes here

+

{$_('user.addressGoesHere')}

@@ -62,7 +63,7 @@ class="w-[292px] md:w-[342px] h-[342px] border border-lightgrey rounded-3xl flex p-5 justify-center items-center relative" /> -

Scan to pay with bitcoin

+

{$_('user.scanToPayBTC')}

{#if !withdrawing} Bitcoin Price: {$rate ? btcPrice : 'fetching rate...'} + >{$_('user.dashboard.bitcoinPrice')} + {$rate ? btcPrice : $_('user.dashboard.fetchingRate')} {$preferredCurrency} Data from Binance. + >{@html $_('user.dashboard.dataFromBinance')}

- ACCOUNT BALANCE + {$_('user.dashboard.ACCOUNT_BALANCE')}

{$rate ? accountBalanceFiat : 'fetching rate...'}{$rate ? accountBalanceFiat : $_('user.dashboard.fetchingRate')} - {accountBalanceSats} SATS + {accountBalanceSats} SAT $_('user.dashboard.withdraw') -

You will be charged a 1% withdrawal fee on the amount.

+

{$_('user.dashboard.conversionFeeWarning')}

{:else}
- +