From 9d9cc8ee5ddaa583de8216aa3d4db515c54e6430 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Thu, 18 Aug 2022 15:13:43 -0500 Subject: Extracted some strings into the locale files --- src/components/404.svelte | 5 +++-- src/components/About.svelte | 42 +++++++++++++++-------------------------- src/components/AppHeader.svelte | 14 +++++++------- 3 files changed, 25 insertions(+), 36 deletions(-) (limited to 'src/components') diff --git a/src/components/404.svelte b/src/components/404.svelte index 426f1f96..fbc05048 100644 --- a/src/components/404.svelte +++ b/src/components/404.svelte @@ -1,5 +1,6 @@
@@ -10,7 +11,7 @@ -

404

-

Page not found.

+

{$_('404.404')}

+

{$_('404.pageNotFound')}

diff --git a/src/components/About.svelte b/src/components/About.svelte index 84e1761b..6aa5dd62 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -1,51 +1,36 @@ -

About

+

{$_('about.header')}

- CoinOS is an open source bitcoin web wallet, point of sale, - ecommerce marketplace and exchange platform. Development started in Vancouver in September 2012 - as a way to provide local merchants with a convenient way to accept bitcoin payments. + {@html $_('about.p1')}

- The feature set has grown over the years to accomodate a wide variety of use cases with the goal - of making it as easy as possible for anyone to get started using bitcoin quickly, cheaply, and securely. + {@html $_('about.p2')}

- Anyone can download the source code and host their own instance of the platform backed by their - own bitcoin, liquid or lightning nodes, or reach out and we'll gladly set this up for you. + {@html $_('about.p3')}

- Intra-account transfers between custodial wallets of different users on our server are completely - free, instant, and unlimited. + {@html $_('about.p4')}

-

The Founder

+

{$_('about.founder.header')}

- Adam Soltys + {$_('about.founder.name')} Chief Technical Officer -
+ >{$_('about.founder.position')}
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index dd09d536..761ce2a8 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -5,15 +5,15 @@ import { user, newPayment, colorTheme } from '$lib/store'; import { goto } from '$app/navigation'; import { Icon } from '$comp'; + import { _ } from 'svelte-i18n'; export let avatarPosition = 'left-[calc(50vw-48px)]'; const menuButtons = [ - // { title: 'Customers', icon: 'customers', goto: 'customers' }, - { title: 'Dashboard', icon: 'dash', goto: 'dashboard' }, - { title: 'Settings', icon: 'settings', goto: 'settings' }, - { title: 'Support', icon: 'support', goto: 'support' }, - { title: 'Sign out', icon: 'logout', goto: 'logout' } + { stringID: 'nav.dashboard', icon: 'dash', goto: 'dashboard' }, + { stringID: 'nav.settings', icon: 'settings', goto: 'settings' }, + { stringID: 'nav.support', icon: 'support', goto: 'support' }, + { stringID: 'nav.signOut', icon: 'logout', goto: 'logout' } ]; let showMenu = false; @@ -75,7 +75,7 @@ {/each} @@ -85,7 +85,7 @@
{:else} - + {/if} -- cgit v1.2.3