aboutsummaryrefslogtreecommitdiffstats
path: root/apps/kit/src/routes/(main)/+layout.svelte
blob: 3107861a9b8329dedf5341854aaa1c7570a388cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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);
    });
</script>

<LocaleSwitcher />
<slot />