add i18n support

vibe coded. should not be used but I'll commit it to a separate branch just in case
This commit is contained in:
2025-06-23 22:50:03 +02:00
parent 13f7ac9217
commit 782447bb12
18 changed files with 331 additions and 194 deletions

View File

@ -1,18 +1,19 @@
---
const videoUrl = "https://www.youtube.com/watch?v=t7T4RPBpTVY";
import { translations } from '../data/i18n.js';
const { lang = 'no' } = Astro.props;
const t = translations[lang].vors;
---
<div style="width: 560px; height: 315px;">
<div class="mt-4 text-xl mb-2">
Sett på låta for litt stemning før dere kommer🔥
{t.text}
</div>
<iframe
width="560"
height="315"
src={videoUrl.replace("watch?v=", "embed/")}
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>