
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@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,795 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.