diff --git a/src/lib/components/common/CodeEditor.svelte b/src/lib/components/common/CodeEditor.svelte index 8cb50d01c..86af38f2d 100644 --- a/src/lib/components/common/CodeEditor.svelte +++ b/src/lib/components/common/CodeEditor.svelte @@ -10,11 +10,12 @@ import { python } from '@codemirror/lang-python'; 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 { toast } from 'svelte-sonner'; const dispatch = createEventDispatcher(); + const $i18n = getContext('i18n'); export let boilerplate = ''; export let value = '';