blob: d9f713b4bdcd323d2a93d6328ca183452e8ee751 (
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;
};
|