aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AppHeader.svelte
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-07-29 13:15:27 -0500
committerAdrien Hopkins <[email protected]>2022-07-29 13:15:51 -0500
commitb57597a0487ea5d6451ea43c32d083df40fd9353 (patch)
tree520cdd55cb67b87ab47e8d29fff7c815d576d40b /src/components/AppHeader.svelte
parent0f767571be758ec7eb3c11c5bcd608adfbb9328b (diff)
downloadcoinos-ui-b57597a0487ea5d6451ea43c32d083df40fd9353.tar.gz
coinos-ui-b57597a0487ea5d6451ea43c32d083df40fd9353.zip
added a temporary locale selector to the top bar
Diffstat (limited to 'src/components/AppHeader.svelte')
-rw-r--r--src/components/AppHeader.svelte8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 9998a4f6..d329dff5 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -3,10 +3,18 @@
import { goto } from '$app/navigation';
import { Icon } from '$comp';
+
+ import { locale, locales } from 'svelte-i18n';
</script>
<header class="bg-gradient-to-r from-primary to-gradient h-[20vh] w-full relative">
<nav class="flex justify-end items-center space-x-4 p-5">
+ <select bind:value={$locale}>
+ {#each $locales as locale}
+ <option value={locale}>{locale}</option>
+ {/each}
+ </select>
+
<button class="bg-white p-2 rounded-full w-12 h-12" on:click={() => goto('/receive')}
><Icon icon="numpad" style="mx-auto" /></button
>