blob: 7b5d4f44df0f430768452cef823fe45e9615ca78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { addTranslations, setLocale, setRoute } from "$lib/translations";
/** @type {import('@sveltejs/kit').Load} */
export const load = async ({ data }) => {
const { i18n, translations } = data;
const { locale, route } = i18n;
addTranslations(translations);
await setRoute(route);
await setLocale(locale);
return i18n;
};
|