use runes mode, allow switching locale without js

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-24 16:50:32 +03:00
parent ee4b8a1d50
commit 897d445cdc
9 changed files with 41 additions and 28 deletions

View File

@@ -2,16 +2,16 @@
import { click } from "$lib/util.js";
import { page } from "$app/stores";
export let link;
let { link, children } = $props();
</script>
<a
class={$page.url.pathname === link ? "active" : "inactive"}
data-sveltekit-preload-data
on:click={click}
onclick={click}
href={link}
>
<slot></slot>
{@render children()}
</a>
<style>