
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
@inlang/paraglide-sveltekit
Advanced tools
[](https://inlang.com)
Initialize an inlang project and install the paraglide sveltekit adapter:
npx @inlang/paraglide-js@beta init
npm i @inlang/paraglide-sveltekit@beta
Add the vite plugin and adapter to your vite.config.js
:
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
+import { paraglideVitePlugin } from '@inlang/paraglide-js';
+import { ParaglideSveltekitAdapter } from '@inlang/paraglide-sveltekit';
export default defineConfig({
plugins: [
sveltekit(),
+ paraglideVitePlugin({
+ project: './project.inlang',
+ outdir: './src/lib/paraglide',
+ adapter: ParaglideSveltekitAdapter()
+ })
]
});
Add the handle hook to /src/hooks.server.ts
:
import type { Handle } from '@sveltejs/kit';
import * as paraglideAdapter from '$lib/paraglide/adapter';
export const handle: Handle = paraglideAdapter.handle;
Add the reroute hook to /src/hooks.ts
:
import type { Reroute } from '@sveltejs/kit';
import * as paraglideAdapter from '$lib/paraglide/adapter';
export const reroute: Reroute = paraglideAdapter.reroute;
Create or add the the Paraglide provider to the root layout file in /src/routes/+layout.svelte
:
<script lang="ts">
+ import { ParaglideSveltekitProvider } from '$lib/paraglide/adapter';
</script>
+<ParaglideSveltekitProvider>
<slot></slot>
+</ParaglideSveltekitProvider>
FAQs
--- imports: - https://cdn.jsdelivr.net/npm/@opral/markdown-wc-doc-elements/dist/doc-callout.js ---
The npm package @inlang/paraglide-sveltekit receives a total of 3,406 weekly downloads. As such, @inlang/paraglide-sveltekit popularity was classified as popular.
We found that @inlang/paraglide-sveltekit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.