summaryrefslogtreecommitdiffstats
path: root/apps/web-shared/src/components/locale-switcher-icon.svelte
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-07 01:33:52 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-07 01:34:48 +0200
commita8b44b09a404aee477e735501b828d1b14aad311 (patch)
tree41b8e21f7484a3f93867a137826da255081fb0ab /apps/web-shared/src/components/locale-switcher-icon.svelte
parent591f1c5fd81bd2b92e91a90847ea06438211078d (diff)
downloadgreatoffice-a8b44b09a404aee477e735501b828d1b14aad311.tar.xz
greatoffice-a8b44b09a404aee477e735501b828d1b14aad311.zip
feat: Add inital translation support
Diffstat (limited to 'apps/web-shared/src/components/locale-switcher-icon.svelte')
-rw-r--r--apps/web-shared/src/components/locale-switcher-icon.svelte16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/web-shared/src/components/locale-switcher-icon.svelte b/apps/web-shared/src/components/locale-switcher-icon.svelte
new file mode 100644
index 0000000..d2776a1
--- /dev/null
+++ b/apps/web-shared/src/components/locale-switcher-icon.svelte
@@ -0,0 +1,16 @@
+<script>
+ import {GlobeIcon} from "svelte-feather-icons";
+
+ export let show = false;
+ export let selection = "preffered";
+</script>
+<div data-locale-switcher-element
+ class="ld-switch flex">
+ <button class="reset ld-switch-btn"
+ on:click={() => (show = !show)}>
+ <div class="ld-switch-btn__icon-wrapper ld-switch-btn__icon-wrapper--in"
+ aria-hidden="true">
+ <GlobeIcon/>
+ </div>
+ </button>
+</div>