12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
import type { PageLoad } from "./$types";
|
|
import type { HeaderData } from "$lib/util/types";
|
|
import { i18nObject } from "$i18n/i18n-util.js";
|
|
|
|
export const load: PageLoad = async ({ parent }) => {
|
|
const { locale } = await parent();
|
|
const LL = i18nObject(locale);
|
|
|
|
return {
|
|
header: { title: LL.app_name() } satisfies HeaderData,
|
|
};
|
|
};
|