mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-04 01:22:32 +00:00
seo
This commit is contained in:
15
website/src/routes/[...language]/+layout.svelte
Normal file
15
website/src/routes/[...language]/+layout.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { ModeWatcher } from 'mode-watcher';
|
||||
import { isLoading, locale, _ } from 'svelte-i18n';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
if ($page.params.language) {
|
||||
locale.set($page.params.language);
|
||||
}
|
||||
</script>
|
||||
|
||||
<ModeWatcher />
|
||||
|
||||
{#if !$isLoading}
|
||||
<slot />
|
||||
{/if}
|
Reference in New Issue
Block a user