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