opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
42 stars 0 forks source link

How to handle the +error.svelte with Sveltekit and Paraglide-js? #27

Closed LorisSigrist closed 1 day ago

LorisSigrist commented 7 months ago

Discussed in https://github.com/opral/monorepo/discussions/2336

Originally posted by **psntr** March 3, 2024 Probably really newbie question but honestly I can't manage to make my traditional 404 not found error page with Paraglide-js adapter and Svetelkit. Everytime I enter a route that doesn't exist, I'm facing the Internal error 500 page instead of my +error.svelte page. Anyone facing similar issue or how do you guys handle it?
feavel1 commented 7 months ago

Good question.

It is maybe related to the reroute hook not getting the needed page? Did you try adding a [[lang]] directory? Since last issue I had, adding the [[lang]] directory and restructuring my project with "$paraglide/runtime" functions instead of "@inlang/paraglide-js-adapter-sveltekit" the 404 is appearing as it should.

linear[bot] commented 6 months ago

PARJS-30 How to handle the +error.svelte with Sveltekit and Paraglide-js?