fix types
Co-authored-by: Petter Sæterøy <potetmos1@users.noreply.github.com>
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user