// +layout.ts
import '$lib/i18n'
import { waitLocale } from 'svelte-i18n'
import type { LayoutLoad } from './$types'

export const load: LayoutLoad = async ({ data }) => {
	await waitLocale()

	return data;
}