sveltekit-inlang-paraglide-demo Svelte Themes

Sveltekit Inlang Paraglide Demo

Simple multilanguage / i18n demo with SvelteKit and @inlang/paraglide-js-adapter-sveltekit

sveltekit-inlang-paraglide-demo

Simple multilanguage demo with SvelteKit and @inlang/paraglide-js-adapter-sveltekit.

Features:

  • conditional markdown loading based on selected language (server side)
  • translated URL slugs

šŸš§ Quick demo and my first try, needs some improvements (e.g. type safety) šŸš§

Credits and acknowledgements

Local setup

npm i
npm run dev -- -- open

How was this created

  1. npm create svelte@latest . -> skeleton project, JSDocs
  2. Followed https://www.npmjs.com/package/@inlang/paraglide-js-adapter-sveltekit
npx @inlang/paraglide-js init
# Selected languages: en, de-at, de-de; and selected SvelteKit
npm i -D @inlang/paraglide-js-adapter-sveltekit

See https://www.npmjs.com/package/@inlang/paraglide-js-adapter-sveltekit for other steps needed.

  1. Installed https://www.npmjs.com/package/mdsvex, added mdsvex.config.js and modified svelte.config.js

See https://www.thisdot.co/blog/how-to-quickly-build-and-deploy-a-static-markdown-blog-with-sveltekit for all steps

Top categories

Loading Svelte Themes