From 7a5ba5ea4aec0704070cfe8d63ba504a07d88cc6 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sat, 1 Oct 2022 16:44:31 +0800
Subject: feat: Functionality complete public sites

---
 apps/kit/src/routes/(main)/+layout.svelte | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'apps/kit/src/routes/(main)/+layout.svelte')

diff --git a/apps/kit/src/routes/(main)/+layout.svelte b/apps/kit/src/routes/(main)/+layout.svelte
index 3107861..9787e17 100644
--- a/apps/kit/src/routes/(main)/+layout.svelte
+++ b/apps/kit/src/routes/(main)/+layout.svelte
@@ -1,16 +1,11 @@
 <script lang="ts">
     import "../../app.pcss";
     import { setLocale } from "$lib/i18n/i18n-svelte";
-    import { onMount } from "svelte";
     import type { LayoutData } from "./$types";
-    import LocaleSwitcher from "$lib/components/locale-switcher.svelte";
 
     export let data: LayoutData;
 
-    onMount(async () => {
-        setLocale(data.locale);
-    });
+    setLocale(data.locale);
 </script>
 
-<LocaleSwitcher />
 <slot />
-- 
cgit v1.3

