chore(web): enforce valid translation keys using typescript (#12106)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user