aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/_lang/+page.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/_lang/+page.svelte')
-rw-r--r--src/routes/_lang/+page.svelte17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/routes/_lang/+page.svelte b/src/routes/_lang/+page.svelte
new file mode 100644
index 0000000..619f97f
--- /dev/null
+++ b/src/routes/_lang/+page.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ import { setLocale } from '$lib/paraglide/runtime';
+ import { page } from '$app/state';
+ import { goto } from '$app/navigation';
+ import { m } from '$lib/paraglide/messages.js';
+ import Page from '$lib/Page.svelte';
+</script>
+
+<Page title="Lang">
+ <h1>{m.locale_page_informational_message()}</h1>
+ <div>
+ <button onclick={() => setLocale('en-gb')}>en-gb</button>
+ <button onclick={() => setLocale('de-ch')}>de-ch</button>
+ </div>
+
+ <small>this page is temporary</small>
+</Page>