mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-20 23:11:03 +00:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import { setLocale } from '$i18n/i18n-svelte';
|
|
import { loadAllLocalesAsync } from '$i18n/i18n-util.async';
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
export const load: LayoutLoad = async ({ url }) => {
|
|
await loadAllLocalesAsync();
|
|
setLocale('cs');
|
|
|
|
return {
|
|
url: url.pathname
|
|
};
|
|
};
|