fix: missing translations (#293)
This commit is contained in:
+2
-1
@@ -7,6 +7,7 @@
|
||||
import Preview from './Preview.svelte';
|
||||
import { SELECTABLE_STATUS } from './constants';
|
||||
import { snackbar } from '$lib/components/Snackbar/store';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
|
||||
export let open = false;
|
||||
export let onClose = () => {};
|
||||
@@ -38,7 +39,7 @@
|
||||
total
|
||||
});
|
||||
|
||||
snackbar.success(`snackbar.exercise.submission_updated '${status.label}'`);
|
||||
snackbar.success(`${$t('snackbar.exercise.submission_updated')} '${status.label}'`);
|
||||
}
|
||||
|
||||
function setStatus(data) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { settings } from './store';
|
||||
import { dndzone } from 'svelte-dnd-action';
|
||||
import Draggable from 'carbon-icons-svelte/lib/Draggable.svelte';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
|
||||
const flipDurationMs = 300;
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
class="flex items-center justify-start text-center text-xs md:text-base gap-1 md:gap-2 dark:text-white bg-slate-100 dark:bg-slate-700 p-2 rounded-md"
|
||||
>
|
||||
<Draggable size={16} />
|
||||
{item.name}
|
||||
{$t(item.name)}
|
||||
</div>
|
||||
{/each}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user