feat: some shit?
Some checks failed
Deploy to SFTP Server / build (push) Failing after 50m12s

This commit is contained in:
2024-04-07 00:29:52 +02:00
parent 96c053d5ff
commit f76477db98
11 changed files with 57 additions and 46 deletions

View File

@@ -24,19 +24,15 @@ const flags = {
const t = useTranslations(Astro.url);
---
<ul class="flex items-center gap-4">
{
Object.entries(locales).map(([lang, label]) => (
<li>
<a
class="flex gap-2 items-center"
href={translatePath(lang)}
data-astro-prefetch
>
<span class="text-xs">{flags[label as keyof typeof flags]}</span>
{t(label as "de")}
</a>
</li>
))
}
</ul>
{
Object.entries(locales).map(([lang, label]) => (
<a
class="flex gap-2 items-center"
href={translatePath(lang)}
data-astro-prefetch
>
<span class="text-xs">{flags[label as keyof typeof flags]}</span>
{t(label as "de")}
</a>
))
}