aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-14 12:43:20 -0600
committerAdam Soltys <[email protected]>2022-11-14 12:43:20 -0600
commitd0289d5358a5b50e3b390a920f6c109221e74b05 (patch)
tree9dd2a2ab7fe236d9574580e2f98ad62157872ea1 /src
parent54600e38ff6c9e9b762bea09928dc3d290b33498 (diff)
downloadcoinos-ui-d0289d5358a5b50e3b390a920f6c109221e74b05.tar.gz
coinos-ui-d0289d5358a5b50e3b390a920f6c109221e74b05.zip
missing translation strings
Diffstat (limited to 'src')
-rw-r--r--src/components/Footer.svelte4
-rw-r--r--src/locales/en.json7
-rw-r--r--src/routes/(app)/ln/[lnurl]/+page.svelte3
-rw-r--r--src/routes/(app)/send/[...text]/+page.svelte6
-rw-r--r--src/routes/(app)/send/[uuid=uuid]/+page.svelte8
-rw-r--r--src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte5
-rw-r--r--src/routes/(app)/send/lightning/[payreq]/+page.svelte7
-rw-r--r--src/routes/(app)/send/user/[username]/[...amount]/+page.svelte3
-rw-r--r--src/routes/(app)/send/voucher/+page.svelte3
-rw-r--r--src/routes/+page.server.js7
10 files changed, 37 insertions, 16 deletions
diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte
index 0ea934e6..bd5e5d2c 100644
--- a/src/components/Footer.svelte
+++ b/src/components/Footer.svelte
@@ -26,8 +26,8 @@
<button
class="bg-black text-white border rounded-full px-6 py-4 font-bold hover:opacity-80 text-lg"
>
- Get started
- </button>
+ {$t('nav.startInSeconds')}
+ </button>
</a>
</div>
<LocaleSelector style="p-2 rounded-md text-center hover:opacity-80 cursor-pointer" />
diff --git a/src/locales/en.json b/src/locales/en.json
index cbd9be0d..6ab1c39d 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -231,7 +231,12 @@
"TIME": "TIME",
"sent": "Sent",
"received": "Received",
- "empty": "No transactions yet."
+ "empty": "No transactions yet.",
+ "send": "Send",
+ "next": "Next",
+ "sendersChoice": "Sender's choice",
+ "sendTo": "Send to",
+ "to": "to"
}
}
}
diff --git a/src/routes/(app)/ln/[lnurl]/+page.svelte b/src/routes/(app)/ln/[lnurl]/+page.svelte
index 92eca3e0..95534759 100644
--- a/src/routes/(app)/ln/[lnurl]/+page.svelte
+++ b/src/routes/(app)/ln/[lnurl]/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { enhance } from '$app/forms';
import { Numpad, Spinner } from '$comp';
import { pin } from '$lib/store';
@@ -38,7 +39,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
</div>
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte
index b2d3d764..7c81bd74 100644
--- a/src/routes/(app)/send/[...text]/+page.svelte
+++ b/src/routes/(app)/send/[...text]/+page.svelte
@@ -1,6 +1,6 @@
<script>
import { page } from '$app/stores';
- import { fly } from 'svelte/transition';
+ import { fly } from 'svelte/transition';
import { enhance } from '$app/forms';
import { tick } from 'svelte';
import { browser } from '$app/environment';
@@ -31,7 +31,9 @@
<AppHeader {data} />
<div class="container px-4 max-w-lg mx-auto space-y-5 mt-20">
- <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">Send</h1>
+ <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">
+ {$t('transactions.send')}
+ </h1>
<form method="POST" use:enhance>
{#if form?.error}
diff --git a/src/routes/(app)/send/[uuid=uuid]/+page.svelte b/src/routes/(app)/send/[uuid=uuid]/+page.svelte
index 8e75be57..6c54f487 100644
--- a/src/routes/(app)/send/[uuid=uuid]/+page.svelte
+++ b/src/routes/(app)/send/[uuid=uuid]/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { goto } from '$app/navigation';
import { pin, selectedRate } from '$lib/store';
import { enhance } from '$app/forms';
@@ -45,7 +46,10 @@
<div class="container px-4 mt-20 max-w-xl mx-auto">
{#if amount}
<div class="text-center mb-8">
- <h1 class="text-xl md:text-2xl text-secondary mb-2">Send</h1>
+ <h1 class="text-xl md:text-2xl text-secondary mb-2">
+
+ {$t('transactions.send')}
+ </h1>
<p class="text-6xl break-words mb-4">
{fiat ? f(amountFiat, currency) : '⚡️' + s(amount)}
</p>
@@ -78,7 +82,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
{:else}
diff --git a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
index a9382eb7..87401749 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { enhance } from '$app/forms';
import { Icon, Numpad, Spinner } from '$comp';
import { page } from '$app/stores';
@@ -32,7 +33,7 @@
<div class="container px-4 mt-20 max-w-xl mx-auto">
<div class="text-center mb-8">
- <h1 class="text-3xl md:text-4xl font-semibold mb-2">Send to</h1>
+ <h1 class="text-3xl md:text-4xl font-semibold mb-2">{$t("transactions.sendTo")}</h1>
<p class="text-lg text-secondary">{address}</p>
</div>
<Numpad bind:amount {currency} />
@@ -50,7 +51,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
</div>
diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
index ffe841d2..46dd71d1 100644
--- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte
+++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { enhance } from '$app/forms';
import { Icon, Numpad, Spinner } from '$comp';
import { page } from '$app/stores';
@@ -37,11 +38,11 @@
<div class="container px-4 mt-20 max-w-xl mx-auto">
{#if amount}
<div class="text-center mb-8">
- <h1 class="text-xl md:text-2xl text-secondary mb-2">Send</h1>
+ <h1 class="text-xl md:text-2xl text-secondary mb-2">{$t('transactions.send')}</h1>
<p class="text-6xl break-words mb-4">
{s(amount)} <span class="text-xl md:text-2xl text-secondary">sats</span>
</p>
- <h1 class="text-xl md:text-2xl text-secondary mb-2">to</h1>
+ <h1 class="text-xl md:text-2xl text-secondary mb-2">{$t('transactions.to')}</h1>
<p class="text-6xl break-words">{alias}</p>
</div>
@@ -60,7 +61,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
</div>
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
index 89cec12f..641c30e1 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { goto } from '$app/navigation';
import { pin, selectedRate } from '$lib/store';
import { enhance } from '$app/forms';
@@ -86,7 +87,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
{:else}
diff --git a/src/routes/(app)/send/voucher/+page.svelte b/src/routes/(app)/send/voucher/+page.svelte
index 2c54c4a6..3f45a368 100644
--- a/src/routes/(app)/send/voucher/+page.svelte
+++ b/src/routes/(app)/send/voucher/+page.svelte
@@ -1,4 +1,5 @@
<script>
+ import { t } from '$lib/translations';
import { enhance } from '$app/forms';
import { Icon, Numpad, Spinner } from '$comp';
import { page } from '$app/stores';
@@ -45,7 +46,7 @@
{#if loading}
<Spinner />
{:else}
- Send
+ {$t('transactions.send')}
{/if}
</button>
</div>
diff --git a/src/routes/+page.server.js b/src/routes/+page.server.js
index 4b9e84b0..9dc9680f 100644
--- a/src/routes/+page.server.js
+++ b/src/routes/+page.server.js
@@ -1,4 +1,9 @@
import { get } from '$lib/utils';
export const prerender = true;
-export let load = async () => get('/locations');
+export let load = async () => {
+ try {
+ let locations = await get('/locations');
+ return locations;
+ } catch (e) {}
+};