🚀 Staging environment, Nix shell, Biome formatter, update dependencies
All checks were successful
Build and deploy website / build (push) Successful in 56s

This commit is contained in:
2025-07-01 19:08:34 +02:00
parent 1fa2667deb
commit 3a1592db3e
30 changed files with 1674 additions and 1921 deletions

View File

@ -0,0 +1,29 @@
<script lang="ts">
import { getLocale, type Locale, setLocale } from "@/paraglide/runtime"
const isEnglish = getLocale() === "en"
function updateLocale(lang: Locale) {
setLocale(lang)
}
</script>
<div class="join">
<button
onclick={() => updateLocale("nb")}
class={[
"btn join-item !text-cat-text border-cat-surface0",
!isEnglish ? "bg-cat-mantle" : "bg-cat-base",
]}>Norsk
</button
>
<button
onclick={() => updateLocale("en")}
class={[
"btn join-item !text-cat-text border-cat-surface0",
isEnglish ? "bg-cat-mantle" : "bg-cat-base",
]}>English
</button
>
</div>