opral / inlang-paraglide-js

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

Use Svelte 5 Parser in `Paraglide-Sveltekit`'s preprocessor #120

Closed LorisSigrist closed 1 month ago

LorisSigrist commented 1 month ago

Context

Svelte is really close to finalizing the Svelte 5 release. We should make sure paraglide-sveltekit continues to work on the newest version.

Currently we're using whatever svelte version the user has installed. Unfortunately this makes it really difficult to test on both Svelte 4 & 5.

Proposal

Upgrade & Pin the Svelte 5 parser & add test in both Svelte 4 & 5 Syntax

The Svelte 5 parser is backwards compatible with Svelte 4 Syntax so we aren't breaking compatibility here.