chore(web): enforce valid translation keys using typescript (#12106)

This commit is contained in:
Michel Heusschen 2024-08-29 14:41:39 +02:00 committed by GitHub
parent bab5ad7ebd
commit 9f5a3f1e84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 48 additions and 49 deletions

View file

@ -1,8 +1,9 @@
<script lang="ts">
import FormatMessage from '$lib/components/i18n/format-message.svelte';
import type { InterpolationValues } from '$lib/components/i18n/format-message.svelte';
import type { Translations } from 'svelte-i18n';
export let key: string;
export let key: Translations;
export let values: InterpolationValues = {};
</script>