🌐 Adds language changing component
Gitea Build Action / build-astro (push) Successful in 9m27s

This commit is contained in:
2025-10-22 16:01:39 +02:00
parent c36d08a347
commit 1dd5e87765
5 changed files with 27 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
---
import {languages} from "../i18n/ui.ts";
const {lang} = Astro.params;
---
<div class="absolute top-2 right-2 flex gap-x-2">
{Object.keys(languages).map((code) =>
code === lang ? "" : <a href={`/${code}/`} class="underline">{code.toUpperCase()}</a>
)}
</div>