TirayaFrontend/src/routes/+page.ts
2023-12-19 13:56:43 +01:00

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,
};
};