mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 01:30:18 +00:00
feat: load cs localization
This commit is contained in:
parent
cbb1a9a29e
commit
88cef00215
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';
|
||||
|
||||
export const load: LayoutLoad = async ({ url }) => {
|
||||
await loadAllLocalesAsync();
|
||||
setLocale('cs');
|
||||
|
||||
return {
|
||||
url: url.pathname
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue