import i18n from 'sveltekit-i18n'; export const defaultLocale = 'en'; const config = ({ loaders: [ { locale: 'en', key: '', loader: async () => ( await import('./en.json') ).default, }, { locale: 'ru', key: '', loader: async () => ( await import('./ru.json') ).default, } ], }); export const { t, locale, locales, loading, loadTranslations, setLocale, translations, addTranslations, setRoute } = new i18n(config);