diff options
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+layout.svelte | 3 | ||||
| -rw-r--r-- | src/routes/[username]/dashboard/+page.svelte | 2 | ||||
| -rw-r--r-- | src/routes/[username]/settings/+page.svelte | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 316bf6b3..8ae80e6c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -11,6 +11,7 @@ import { goto } from '$app/navigation'; import { LoadingSplash } from '$comp'; import { warning, protectedRoutes } from '$lib/utils'; + import { _ } from 'svelte-i18n'; browser && ($token ||= $session.token); @@ -28,7 +29,7 @@ if (protectedRoutes.find((p) => $page.url.pathname.match(p))) { if (!$token) { goto('/login'); - warning('Please sign in to continue.'); + warning($_('error.signIn')); } user.subscribe((u) => u?.username && (ready = true)); } else { diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte index 9b2b1c03..e358c52e 100644 --- a/src/routes/[username]/dashboard/+page.svelte +++ b/src/routes/[username]/dashboard/+page.svelte @@ -53,7 +53,7 @@ class="text-center mx-auto lg:text-left lg:mx-0 lg:ml-[calc(15vw-48px)] mt-12 w-full md:w-72" > <h2 class="text-2xl font-semibold">{$user.username}</h2> - <span class="text-secondary">Address goes here</span> + <span class="text-secondary">{$_('user.addressGoesHere')}</span> </div> <div class="px-3 md:px-0 flex justify-center items-center mt-10 lg:mt-0 mb-20"> diff --git a/src/routes/[username]/settings/+page.svelte b/src/routes/[username]/settings/+page.svelte index 47da398d..ac7804a0 100644 --- a/src/routes/[username]/settings/+page.svelte +++ b/src/routes/[username]/settings/+page.svelte @@ -126,8 +126,8 @@ <div> <label for="btc-unit" class="font-bold block mb-1">{$_('user.settings.btcUnit')}</label> <select disabled name="btc-unit" class="block py-3 w-full"> - <option value="SATS">Satoshi (SAT)</option> - <option value="BTC">Bitcoin (BTC)</option> + <option value="SATS">{$_('user.settings.satoshis')} (SAT)</option> + <option value="BTC">{$_('user.settings.bitcoin')} (BTC)</option> </select> </div> {:else} |
