aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHeader.svelte
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-07-29 15:54:30 -0500
committerAdrien Hopkins <[email protected]>2022-07-29 15:54:30 -0500
commit4659bd444ac11a2dff6f65412de6c7a28e086a66 (patch)
tree0d18e71d09b39a057bb8064e4d9223708faa0df2 /src/components/LandingHeader.svelte
parent96d30a31c984b29736a74de007e54ce6efdd09a2 (diff)
downloadcoinos-ui-4659bd444ac11a2dff6f65412de6c7a28e086a66.tar.gz
coinos-ui-4659bd444ac11a2dff6f65412de6c7a28e086a66.zip
made the locale selector its own component
Diffstat (limited to 'src/components/LandingHeader.svelte')
-rw-r--r--src/components/LandingHeader.svelte8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 5faebb59..ca9d431e 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -1,7 +1,7 @@
<script>
import { goto } from '$app/navigation';
import { scroll } from '$lib/utils';
- import { Icon } from '$comp';
+ import { Icon, LocaleSelector } from '$comp';
import { _, locale, locales } from 'svelte-i18n';
@@ -15,11 +15,7 @@
<Icon icon="logo" style="mx-auto mb-5 xl:mb-0" />
</a>
- <select bind:value={$locale}>
- {#each $locales as locale}
- <option value={locale}>{locale}</option>
- {/each}
- </select>
+ <LocaleSelector />
<div class="hidden space-x-10 md:flex flex-wrap justify-center items-center font-bold">
<button on:click={() => scroll(howItWorks)}>{$_('howItWorks')}</button>