From e126a0ee16178f81c23934829d6d64eef7e8b7fb Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Fri, 19 Aug 2022 14:13:35 -0500 Subject: Found & extracted messages missed in previous commits --- src/locales/en.json | 5 ++++- src/routes/+layout.svelte | 3 ++- src/routes/[username]/dashboard/+page.svelte | 2 +- src/routes/[username]/settings/+page.svelte | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/locales/en.json b/src/locales/en.json index 96f62c53..72a458c6 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -26,7 +26,8 @@ }, "error": { "header": "Error", - "message": "Please try again or contact support." + "message": "Please try again or contact support.", + "signIn": "Please sign in to continue." }, "faq": { "header": "FAQ", @@ -157,6 +158,8 @@ "themeDescription": "Select from the default color themes.", "localCurrency": "Local Currency", "btcUnit": "Display bitcoin in:", + "bitcoin": "Bitcoin", + "satoshis": "Satoshis", "securityPIN": "Security PIN", "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.", "setPIN": "Set PIN", 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" >

{$user.username}

- Address goes here + {$_('user.addressGoesHere')}
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 @@
{:else} -- cgit v1.2.3