diff options
| -rw-r--r-- | src/locales/en.json | 5 | ||||
| -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 |
4 files changed, 9 insertions, 5 deletions
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" > <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} |
