blob: 20892e44759c1687fdf7ff7908962c1b8fe92494 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { addTranslations, setLocale, setRoute } from "$lib/translations/index";
/** @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;
};
|