Add some missing i18n keys and update Chinese translation

Add some missing i18n keys and update Chinese translation
This commit is contained in:
Karl Lee
2024-06-17 16:32:36 +08:00
parent a28ad06bf0
commit 720ff35edf
4 changed files with 30 additions and 22 deletions

View File

@@ -1,16 +1,17 @@
<script lang="ts">
import { onMount, createEventDispatcher } from 'svelte';
import { onMount, getContext, createEventDispatcher } from 'svelte';
import { fade } from 'svelte/transition';
const i18n = getContext('i18n');
import { flyAndScale } from '$lib/utils/transitions';
const dispatch = createEventDispatcher();
export let title = 'Confirm your action';
export let message = 'This action cannot be undone. Do you wish to continue?';
export let title = ($i18n.t('Confirm your action'));
export let message = ($i18n.t('This action cannot be undone. Do you wish to continue?'));
export let cancelLabel = 'Cancel';
export let confirmLabel = 'Confirm';
export let cancelLabel = ($i18n.t('Cancel'));
export let confirmLabel = ($i18n.t('Confirm'));
export let show = false;
let modalElement = null;