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) 🚧
- language switcher and path handling - big thanks to LorisSigrist/paraglide-sveltekit-example! 👏
- markdown integration - thx to https://www.thisdot.co/blog/how-to-quickly-build-and-deploy-a-static-markdown-blog-with-sveltekit
- thanks very much to https://inlang.com/ for providing this! 👏
npm i
npm run dev -- -- open
npm create svelte@latest .
-> skeleton project, JSDocs- 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.
- Installed https://www.npmjs.com/package/mdsvex, added
mdsvex.config.js
and modifiedsvelte.config.js
See https://www.thisdot.co/blog/how-to-quickly-build-and-deploy-a-static-markdown-blog-with-sveltekit for all steps