feat: load cs localization

This commit is contained in:
EETagent 2023-01-20 14:20:46 +01:00
parent cdb27d79da
commit 89bc44c223

View file

@ -1,6 +1,11 @@
import { setLocale } from '$i18n/i18n-svelte';
import { loadAllLocalesAsync } from '$i18n/i18n-util.async';
import type { LayoutLoad } from './$types'; import type { LayoutLoad } from './$types';
export const load: LayoutLoad = async ({ url }) => { export const load: LayoutLoad = async ({ url }) => {
await loadAllLocalesAsync();
setLocale('cs');
return { return {
url: url.pathname url: url.pathname
}; };