|
@@ -10,11 +10,12 @@
|
|
import { python } from '@codemirror/lang-python';
|
|
import { python } from '@codemirror/lang-python';
|
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
|
|
|
|
- import { onMount, createEventDispatcher } from 'svelte';
|
|
|
|
|
|
+ import { onMount, createEventDispatcher, getContext } from 'svelte';
|
|
import { formatPythonCode } from '$lib/apis/utils';
|
|
import { formatPythonCode } from '$lib/apis/utils';
|
|
import { toast } from 'svelte-sonner';
|
|
import { toast } from 'svelte-sonner';
|
|
|
|
|
|
const dispatch = createEventDispatcher();
|
|
const dispatch = createEventDispatcher();
|
|
|
|
+ const $i18n = getContext('i18n');
|
|
|
|
|
|
export let boilerplate = '';
|
|
export let boilerplate = '';
|
|
export let value = '';
|
|
export let value = '';
|