diff options
Diffstat (limited to 'src/components/LandingHeader.svelte')
| -rw-r--r-- | src/components/LandingHeader.svelte | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index b0ac0a9d..5faebb59 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -3,7 +3,7 @@ import { scroll } from '$lib/utils'; import { Icon } from '$comp'; - import { _ } from 'svelte-i18n'; + import { _, locale, locales } from 'svelte-i18n'; export let howItWorks; export let faq; @@ -15,6 +15,12 @@ <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> + <div class="hidden space-x-10 md:flex flex-wrap justify-center items-center font-bold"> <button on:click={() => scroll(howItWorks)}>{$_('howItWorks')}</button> <button on:click={() => scroll(faq)}>{$_('FAQ')}</button> |
