diff --git a/frontend/src/lib/i18n/index.ts b/frontend/src/lib/i18n/index.ts index 7b5496c..a71823c 100644 --- a/frontend/src/lib/i18n/index.ts +++ b/frontend/src/lib/i18n/index.ts @@ -4,6 +4,11 @@ import type { TType } from './translation-service'; import type { Readable, Writable } from 'svelte/store'; import { getContext, setContext } from 'svelte'; +export type I18nContext = { + t: Readable; + currentLanguage: Writable; +}; + export const setLocalization = (context: I18nContext) => { return setContext(CONTEXT_KEY, context); }; @@ -29,8 +34,3 @@ export const initLocalizationContext = () => { }; }; const CONTEXT_KEY = 't'; - -export type I18nContext = { - t: Readable; - currentLanguage: Writable; -};