Skip to content

Commit

Permalink
Merge pull request #3373 from oskar-gmerek/patch-1
Browse files Browse the repository at this point in the history
docs: update adapter initialization instructions to match `beta.2`
  • Loading branch information
samuelstroschein authored Jan 25, 2025
2 parents a207135 + 4e88668 commit eac9b60
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions inlang/packages/paraglide/paraglide-sveltekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ Add the vite plugin and adapter to your `vite.config.js`:
```diff
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
+import { paraglideVitePlugin } from '@inlang/paraglide-js';
+import { ParaglideSveltekitAdapter } from '@inlang/paraglide-sveltekit';
+import { paraglideSveltekit } from '@inlang/paraglide-sveltekit';

export default defineConfig({
plugins: [
sveltekit(),
+ paraglideVitePlugin({
+ paraglideSveltekit({
+ project: './project.inlang',
+ outdir: './src/lib/paraglide',
+ adapter: ParaglideSveltekitAdapter()
+ outdir: './src/lib/paraglide'
+ })
]
});
Expand Down Expand Up @@ -58,4 +56,4 @@ Create or add the the Paraglide provider to the root layout file in `/src/routes
+<ParaglideSveltekitProvider>
<slot></slot>
+</ParaglideSveltekitProvider>
```
```

0 comments on commit eac9b60

Please sign in to comment.