12 lines
275 B
TypeScript
12 lines
275 B
TypeScript
import {loadTranslations} from '$lib/translations';
|
|
import type {LayoutLoad} from "./$types";
|
|
|
|
export const load: LayoutLoad = async ({ url, data }) => {
|
|
const { pathname } = url;
|
|
const { locale } = data.i18n
|
|
|
|
await loadTranslations(locale, pathname);
|
|
|
|
return {};
|
|
};
|