1
- import type { ComponentType , SvelteComponent } from 'svelte' ;
2
- import { get } from 'svelte/store' ;
3
- import { error } from '@sveltejs/kit' ;
1
+ import locale from "$lib/i18n/locale" ;
2
+ import { get } from "svelte/store" ;
3
+ import { error } from "@sveltejs/kit" ;
4
+ import { defaultLocale } from "$lib/i18n/translations" ;
4
5
5
- import type { PageLoad } from './$types' ;
6
+ import type { PageLoad } from "./$types" ;
7
+ import type { ComponentType , SvelteComponent } from "svelte" ;
8
+ import type { DefaultImport } from "$lib/types/generic" ;
6
9
7
- import locale from '$lib/i18n/locale' ;
8
- import type { DefaultImport } from '$lib/types/generic' ;
9
- import { defaultLocale } from '$lib/i18n/translations' ;
10
-
11
- const pages = import . meta. glob ( '$i18n/*/about/*.md' ) ;
10
+ const pages = import . meta. glob ( "$i18n/*/about/*.md" ) ;
12
11
13
12
export const load : PageLoad = async ( { params } ) => {
14
13
const getPage = ( locale : string ) => Object . keys ( pages ) . find (
@@ -23,7 +22,7 @@ export const load: PageLoad = async ({ params }) => {
23
22
return { component : ( await componentImport ( ) ) . default }
24
23
}
25
24
26
- error ( 404 , 'Not found' ) ;
25
+ error ( 404 , 'Not found' ) ;
27
26
} ;
28
27
29
28
export const prerender = true ;
0 commit comments