blob: de8a5c0aa0fe036f286b6a1123d2ca307ad59545 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import type {Locales} from "$lib/i18n/i18n-types";
import {loadLocaleAsync} from "$lib/i18n/i18n-util.async";
import type {LayoutLoad} from "./$types";
export const load: LayoutLoad<{ locale: Locales }> = async ({url, params}) => {
let lang = "en" as Locales;
await loadLocaleAsync(lang);
return {locale: lang};
};
|