fix types

Co-authored-by: Petter Sæterøy <potetmos1@users.noreply.github.com>
This commit is contained in:
2025-07-02 23:49:36 +02:00
parent 42a8e1a737
commit a2e9f5ef6f
8 changed files with 28 additions and 19 deletions

View File

@ -1,6 +1,6 @@
---
import { translations } from '@data/i18n.js';
const { lang = 'no' } = Astro.props;
import { translations, type Lang } from '@data/i18n';
const { lang = 'no' } = Astro.props as { lang?: Lang };
const t = translations[lang].vors;
const videoUrl = "https://www.youtube.com/watch?v=t7T4RPBpTVY";