Skip to content

Commit b9ac75c

Browse files
committed
attempt fix by using explicit route param instead of reroute hook
1 parent 3895a1a commit b9ac75c

File tree

15 files changed

+4
-6
lines changed

15 files changed

+4
-6
lines changed

src/hooks.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/params/locale.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { isLocale } from '$lib/i18n/generated/runtime';
2+
import type { ParamMatcher } from '@sveltejs/kit';
3+
4+
export const match = ((param) => isLocale(param)) satisfies ParamMatcher;
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)