mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Add some missing i18n keys and update Chinese translation
Add some missing i18n keys and update Chinese translation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user