From 9fb30d47874ec9e423599485869c9bbbe9a221d5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 24 Jun 2024 12:23:12 -0700 Subject: [PATCH] fix --- src/lib/components/common/CodeEditor.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = '';