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/AppHeader.svelte | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/components/AppHeader.svelte') 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