@inlang/paraglide-sveltekit
0.16.1
Fix: dist folder not uploaded to NPM.
0.16.0
Added deprecation notice. Paraglide JS 2.0 doesn't need the SvelteKit adapter anymore. You can use Paraglide JS 2.0 directly.
0.15.5
Patch Changes
- @inlang/paraglide-js@1.11.8
- @inlang/paraglide-vite@1.3.5
0.15.4
Patch Changes
- @inlang/paraglide-vite@1.3.4
0.15.3
Patch Changes
- Updated dependencies
- @inlang/paraglide-js@1.11.7
- @inlang/paraglide-vite@1.3.3
0.15.2
Patch Changes
- Updated dependencies [3123e85]
- @inlang/paraglide-js@1.11.6
- @inlang/paraglide-vite@1.3.2
0.15.1
Patch Changes
- Updated dependencies
- @inlang/paraglide-js@1.11.5
- @inlang/paraglide-vite@1.3.1
0.15.0
Minor Changes
- 88b87b9: Updates internal components to Svelte 5 rune syntax. Closes https://github.com/opral/inlang-paraglide-js/issues/262 and fixes https://github.com/opral/inlang-paraglide-js/issues/272.
0.14.0
Minor Changes
-
80727ee: Add
experimentalUseVirtualModulesoption to use the$paraglidevirtual module instead of writing files to disk. Closes https://github.com/opral/inlang-paraglide-js/issues/264- good for projects that can't have
allowJs: truein their TypeScript config https://github.com/opral/inlang-paraglide-js/issues/238 - less clutter in the compiled output directory https://github.com/opral/inlang-paraglide-js/issues/189
The compiled output will only emit the
runtime.d.tsandmessages.d.tsfiles. - good for projects that can't have
Patch Changes
- Updated dependencies [80727ee]
- @inlang/paraglide-vite@1.3.0
0.13.1
Patch Changes
- reverts 0.13.0 because it leads to a crash in production https://github.com/opral/inlang-paraglide-js/issues/272
0.13.0
Minor Changes
- 1ea4bd8: Svelte 5 runes are used in the Paraglide component. Closes https://github.com/opral/inlang-paraglide-js/issues/262
0.12.1
Patch Changes
-
7857f62: fixes "
a11y-missing-attributeis no longer valid — please usea11y_missing_attributeinstead"
0.12.0
Minor Changes
- ca227dd: Add Vary header to redirects that invalidate cache if the cookie or accept language header changes.
Patch Changes
- @inlang/paraglide-vite@1.2.77
0.11.5
Patch Changes
-
bc1e49e: Fixes a silent runtime bug for load functions that depent on paraglide. See https://github.com/opral/monorepo/pull/3184 and https://discord.com/channels/897438559458430986/1297558489182375978/1297645584210985021.
It's a regression bug of
0.11.2and0.11.3.
0.11.4
Patch Changes
0.11.3
Patch Changes
-
559bc44: Fixed https://github.com/opral/inlang-paraglide-js/issues/243.
Regression bug after 0.11.1 release. The cookie has been renamed from
paraglide:langtoparaglide_langbut the SvelteKit load function was not updated from the old cookie name.
0.11.2
Patch Changes
- @inlang/paraglide-vite@1.2.76
0.11.1
Patch Changes
-
f8565fa: Fixes https://github.com/opral/inlang-paraglide-js/issues/234.
Paraglide SvelteKit used the cookie name
paraglide:langwhich is not compliant with rfc6265 standards for cookie names. SvelteKit recently introduced strict cookie parsing which causedparaglide:langto be rejected.The cookie name has been updated to
paraglide_langto be compliant. -
Updated dependencies [e04d5fe]
-
Updated dependencies [a1ea1ff]
-
Updated dependencies [fa42a3a]
- @inlang/paraglide-js@1.11.3
- @inlang/paraglide-vite@1.2.75
0.11.0
Minor Changes
-
82581f7: Adds a
disableAsyncLocalStorageoption toi18n.handle. This allows you to opt out of using the experimentalAsyncLocalStorageAPI.Warning Disabling
AsyncLocalStorageremoves the protection against concurrent requests overriding each other's language state.Only opt out if
AsyncLocalStorageif you are certain your environment does not handle concurrent requests in the same process. For example in Vercel Edge functions or Cloudflare Workers.In environments where only one request is processed in a given process disabling
AsyncLocalStoragecan yield performance gains.Example
Patch Changes
-
72b2f34: fix: Preserve query parameters when redirecting (inlang-paraglide-js#168)
i18n.handleredirects requests if the pathname does not fit the detected language. Previously this would remove any query parameters from the URL. This is no longer the case. -
Updated dependencies [59c8b11]
- @inlang/paraglide-js@1.11.2
- @inlang/paraglide-vite@1.2.74
0.10.10
Patch Changes
- Updated dependencies [14d80b3]
- @inlang/paraglide-js@1.11.1
- @inlang/paraglide-vite@1.2.73
0.10.9
Patch Changes
- cf4019d: remove
console.logstatement that managed to slip by linting
0.10.8
Patch Changes
- 5ec62a4: Fixes a couple issues with the base-path during prerendering
- SSRd language during prerendering is now correct when using a base-path
- Alternate links are correctly generated during prerendering
0.10.7
Patch Changes
- Updated dependencies [e37eabf]
- @inlang/paraglide-js@1.11.0
- @lix-js/client@2.2.1
- @inlang/paraglide-vite@1.2.72
0.10.6
Patch Changes
- bcd894f:
initcommand now generates thesrc/libdirectory if it does not exist. Previously it would just crash- @inlang/paraglide-js@1.10.1
- @inlang/paraglide-vite@1.2.71
0.10.5
Patch Changes
- Updated dependencies [c5d145d]
- @inlang/paraglide-js@1.10.1
- @inlang/paraglide-vite@1.2.70
0.10.4
Patch Changes
- Updated dependencies [33662e6]
- @inlang/paraglide-js@1.10.0
- @inlang/paraglide-vite@1.2.69
0.10.3
Patch Changes
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.68
0.10.2
Patch Changes
- b5d4a4c: fix regression with
excludeoption
0.10.1
Patch Changes
- ecef103: fix how
AsyncLocalStorageis handled accross requests
0.10.0
Minor Changes
-
928742b: Make
languageTag()and message functions available in server-side load function.This eliminates the need for
event.locals.paraglide.langanywhere.- Manually passing the language tag to message functions that are used in load functions / actions.
0.9.7
Patch Changes
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.67
0.9.6
Patch Changes
- 1ea7b14: Explicitly mark
paraglide:langcookie as notHttpOnly.- @inlang/paraglide-js@1.9.1
0.9.5
Patch Changes
- 08a1e3f: Fix translation of hrefs that don't include a path. This is especially important with form actions.
0.9.4
Patch Changes
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.66
0.9.3
Patch Changes
- def2d4e: fix: Also update the
paraglide:langcookie on the client to allow for better language negotiation- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.65
0.9.2
Patch Changes
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.64
0.9.1
Patch Changes
- f0192d2: Invalid
hrefs in your app no longer cause errors to be thrown in<ParaglideJS>. During development a warning is logged. - 255fd41: The link preprocessor no longer crashes when encountering a file with a syntax error. Insetad it will log a warning & noop. Reporting the error is delegated to the main svelte parser.
0.9.0
Minor Changes
-
76e7f20: Add the
ParaglideLocalsinterface for properly typing paraglide's locals. It should be added inapp.d.tsunderLocals.paraglide. TheinitCLI will do this automatically -
8db2224: Previously, if the default language was available on the root
/, then it would still be available under/[lang]. This was never intended & no longer the case.If you still want this behavior set the
prefixDefaultLanguageto"always"in youri18nconfig.
Patch Changes
- 6319391: Fix: Excluded routes now use the default language instead of incorrecly attempting to detect the language form the URL
0.8.7
Patch Changes
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.63
0.8.6
Patch Changes
- Updated dependencies [3b2e0a6]
- @lix-js/client@2.2.0
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.62
0.8.5
Patch Changes
- Updated dependencies [548bc9e]
- @lix-js/client@2.1.0
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.61
0.8.4
Patch Changes
- @inlang/paraglide-js@1.9.1
- @lix-js/client@2.0.1
- @inlang/paraglide-vite@1.2.60
0.8.3
Patch Changes
- Updated dependencies [00ad046]
- @lix-js/client@2.0.0
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.59
0.8.2
Patch Changes
- @inlang/paraglide-vite@1.2.58
- @inlang/paraglide-js@1.9.1
0.8.1
Patch Changes
- fbac297: Fix
binfield inpackage.json
0.8.0
Minor Changes
- 0bf4d74: Added an
@inlang/paraglide-sveltekit initcommand to automatically addparaglide-sveltekitto your project
Patch Changes
- 75cf8fd: Prompt about adding the VsCode extension and Github Action during
paraglide-sveltekit init - a27b7a4: This reintroduces reactivity to lint reports - see https://github.com/opral/monorepo/pull/2792 for more details
- Updated dependencies [b8573fa]
- @inlang/paraglide-js@1.9.1
- @inlang/paraglide-vite@1.2.57
0.7.0
Minor Changes
- 3e9b863: Use Svelte 5 compiler in the preprocessor for rewriting links
Patch Changes
- Updated dependencies [eb941fe]
- Updated dependencies [9566348]
- @inlang/paraglide-js@1.9.0
- @inlang/paraglide-vite@1.2.56
0.6.23
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.55
0.6.22
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.54
0.6.21
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.53
0.6.20
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.52
0.6.19
Patch Changes
- 1e5320e: Protect against the preprocessor being applied twice
0.6.18
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.51
0.6.17
Patch Changes
- @inlang/paraglide-vite@1.2.50
0.6.16
Patch Changes
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.49
0.6.15
Patch Changes
- Updated dependencies [21ab0a0]
- Updated dependencies [21ab0a0]
- @inlang/paraglide-js@1.8.0
- @inlang/paraglide-vite@1.2.48
0.6.14
Patch Changes
- 419d8b6: Fix issue where the localised routing didn't always use the most specific pathname as outlined in https://kit.svelte.dev/docs/advanced-routing#sorting
- Updated dependencies [32cbe48]
- @inlang/paraglide-js@1.7.3
- @inlang/paraglide-vite@1.2.47
0.6.13
Patch Changes
- @inlang/paraglide-js@1.7.2
- @inlang/paraglide-vite@1.2.46
0.6.12
Patch Changes
- @inlang/paraglide-js@1.7.2
- @inlang/paraglide-vite@1.2.45
0.6.11
Patch Changes
- Updated dependencies [6105a50]
- @inlang/paraglide-js@1.7.2
- @inlang/paraglide-vite@1.2.44
0.6.10
Patch Changes
- @inlang/paraglide-js@1.7.1
- @inlang/paraglide-vite@1.2.43
0.6.9
Patch Changes
- Updated dependencies [4d24188]
- @inlang/paraglide-js@1.7.1
- @inlang/paraglide-vite@1.2.42
0.6.8
Patch Changes
- @inlang/paraglide-js@1.7.0
- @inlang/paraglide-vite@1.2.41
0.6.7
Patch Changes
- Updated dependencies [0774c1a]
- @inlang/paraglide-js@1.7.0
- @inlang/paraglide-js-adapter-vite@1.2.40
0.6.6
Patch Changes
- cee4692: Use index accesses instead of
.atfunction for better compatability with legacy browsers - 4b631aa: Update invalid type-declarations
- Updated dependencies [cee4692]
- Updated dependencies [4b631aa]
- Updated dependencies [3c7a87c]
- Updated dependencies [ab1fe48]
- @inlang/paraglide-js@1.6.2
- @inlang/paraglide-js-adapter-vite@1.2.39
0.6.5
Patch Changes
- Updated dependencies [fa6aa31]
- Updated dependencies [dee5aa6]
- @inlang/paraglide-js@1.6.1
- @inlang/paraglide-js-adapter-vite@1.2.38
0.6.4
Patch Changes
- Updated dependencies [462325b]
- @inlang/paraglide-js@1.6.0
- @inlang/paraglide-js-adapter-vite@1.2.37
0.6.3
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.36
0.6.2
Patch Changes
- cdbb415: Fix crash when switching languages on a route tthat ends with a
[...rest]parameter when there is a trailing slash
0.6.1
Patch Changes
- a4d4e10: Fix crashe when navigating to
/{lang}/withtrailingSlash="always"
0.6.0
Minor Changes
- 1642873: Param Matchers are now supported. They can be passed to
createI18nalongsidepathnameswith thematchersoption. - ce0b961: Wildcard and optional parameters are now supported for translated pathnames
Patch Changes
- 690656e: Trailing Slashes are now preserverd more reliably if present
- @inlang/paraglide-js-adapter-vite@1.2.35
0.5.22
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.34
0.5.21
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.33
0.5.20
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.32
0.5.19
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.31
0.5.18
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.30
0.5.17
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.29
0.5.16
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.28
0.5.15
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.27
0.5.14
Patch Changes
- d052495: fix: Log filename when warning about using
<a>tags in the same file as<ParaglideJS>- @inlang/paraglide-js-adapter-vite@1.2.26
0.5.13
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.25
0.5.12
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.24
0.5.11
Patch Changes
- ef4e0ab: fix: preserve trailing slash when translating hrefs
- @inlang/paraglide-js-adapter-vite@1.2.23
0.5.10
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.22
0.5.9
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.21
0.5.8
Patch Changes
- 62e4a5c: Add warning message if an
<a>tag is used in the same component as<ParaglideJS>since they can't be translated- @inlang/paraglide-js-adapter-vite@1.2.20
0.5.7
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.19
0.5.6
Patch Changes
- bce060367: fix: make
sveltea peer dependency- @inlang/paraglide-js-adapter-vite@1.2.18
0.5.5
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.17
0.5.4
Patch Changes
- 5d25b889a: log warning if the
langattribute isn't updated insrc/app.html
0.5.3
Patch Changes
- 726690acb: fix: Disable some lint errors when internally rewriting links with the spread syntax to avoid annoying logs (https://discord.com/channels/897438559458430986/1070750156644962434/1212320293578874880)
0.5.2
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.16
0.5.1
Patch Changes
- a7b593e9a: fix: double-execution of
loadon initial load
0.5.0
Minor Changes
- e4e879c77: feat: Automatically call
invalidate("paraglide:lang")when the language changes. You can now calldepends("paraglide:lang")in your server-load functions to have them re-run on language changes.
Patch Changes
- 7f566ae73: fix reactivity issue in Svelte 5 #2270
- 21a3890cc: fix: Corrected comments saying the default placeholder for the text-direction is
%paraglide.dir%when it's%paraglide.textDirection% - 37a247c0e: fix:
i18n.resolveRoutenow ignores paths that don't start with the base - 37a247c0e: fix: Alternate links will not include the origin during prerendering, unless one is explicitly specified in
kit.prerender.origin
0.4.1
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.15
0.4.0
Minor Changes
- 45f5d8256: Message function can now be used as pathname translations
0.3.7
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.14
0.3.6
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.13
0.3.5
Patch Changes
- eaef718ee: Treeshake away
i18n.handleon the client to reduce bundle size
0.3.4
Patch Changes
- 3aa1b6ca3: fix #2717 - Link rewrite reactivity issue when navigating between pages
- @inlang/paraglide-js-adapter-vite@1.2.12
0.3.3
Patch Changes
-
0efbc35c5: The
hrefattribute on<link rel="alternate"is now always a fully qualified URL, including the protocol, as the spec demands.If you are prerendering, you should set
kit.prerendering.origininsvelte.config.jsto make sure the correct URL gets prerendered.
0.3.2
Patch Changes
- 6e7435185: fix: Don't stringify value-only attributes
- de595ebf1: fix: Properly encode & decode non-latin pathnames
- 01e918153: Fix:
noAlternateLinksdefault value is nowfalse, as it should be- @inlang/paraglide-js-adapter-vite@1.2.11
0.3.1
Patch Changes
- b10958b71: fix
seotype not being optional oncreateI18n
0.3.0
Minor Changes
- 577c66b45: breaking: move
noAlternateLinksoption from<ParaglideJS>component toseooption oncreateI18n - 021ae3e80: feat: Add
textDirectionoption tocreateI18nfor text-direction. If omitted, an automatically detected text-direction will be used.
Patch Changes
- da9b91ff4: fix: Rewrite {...spreadAttributes}
- cfa1b0175: fix: Crawl
{:else},{:then}and{:catch}blocks for links to rewrite - cfa1b0175: fix: Rewrite attributes on
<svelte:element>
0.2.5
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.10
0.2.4
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.9
0.2.3
Patch Changes
- 0305ce54e: fix broken globbing for
excludeoption causing the wrong routes to be excluded
0.2.2
Patch Changes
- 6ac6e3be9: fix: make
excludeoption optional
0.2.1
Patch Changes
- 117c684d0: fix base resolution issue in
route
0.2.0
Minor Changes
- 87135ae38: Rename
routetoresolveRouteandgetCanonicalPathtoroute- As to be more inline with SvelteKit's naming convention
Patch Changes
- 87135ae38: fix base-path normalisation issue
0.1.2
Patch Changes
- @inlang/paraglide-js-adapter-vite@1.2.8
0.1.1
hotfix: Build unbuilt TypeScript so that the package can be used in non-TypeScript projects.
0.1.0
First public prerelease of the SvelteKit adapter for Paraglide.

