Files
UpSnap/frontend/src/hooks.ts
Maxi Quoß f53b93a3a5 feat: replace typesafe-i18n with inlang/paraglide-js
typesafe-i18n is no longer maintained
2025-03-05 04:07:25 +01:00

7 lines
198 B
TypeScript

import { deLocalizeUrl } from '$lib/paraglide/runtime';
import type { Reroute } from '@sveltejs/kit';
export const reroute: Reroute = (request) => {
return deLocalizeUrl(request.url).pathname;
};