mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 17:52:14 +00:00
feat: load cs localization
This commit is contained in:
parent
cdb27d79da
commit
89bc44c223
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue