Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9e2575

Browse filesBrowse files
committed
Migrated to new paraglide version
1 parent 3fbacf5 commit f9e2575
Copy full SHA for f9e2575

8 files changed

+103
-118
lines changed

‎bun.lockb

Copy file name to clipboard
-19.5 KB
Binary file not shown.

‎package.json

Copy file name to clipboard
+90-89Lines changed: 90 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,91 @@
11
{
2-
"name": "kit-stack",
3-
"version": "1.0.0",
4-
"type": "module",
5-
"private": true,
6-
"engines": {
7-
"node": ">=20.0.0"
8-
},
9-
"scripts": {
10-
"dev": "bun db:generate && bun vite:dev",
11-
"build": "bun lang:build && bun db:generate && bun vite:build",
12-
"vite:dev": "bun vite dev",
13-
"vite:build": "bun vite build",
14-
"db:generate": "bun drizzle-kit generate:pg",
15-
"db:push": "bun drizzle-kit push:pg",
16-
"db:studio": "bun drizzle-kit studio",
17-
"lang:studio": "bun x @inlang/cli open editor",
18-
"lang:build": "paraglide-js compile --project ./project.inlang",
19-
"preview": "bun vite preview",
20-
"lint": "prettier --plugin-search-dir . --check . && eslint .",
21-
"format": "prettier --plugin-search-dir . --write .",
22-
"env:sync": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
23-
"vercel:build": "~/.bun/bin/bun lang:build && ~/.bun/bin/bun db:push && ~/.bun/bin/bun vite:build",
24-
"storybook": "STORYBOOK=true storybook dev -p 6006 -s ../static",
25-
"storybook:build": "STORYBOOK=true storybook build -s ../static",
26-
"storybook:serve": "bun x serve storybook-static",
27-
"deps:update": "bun x npm-check-updates -ui",
28-
"clean": "rm -rf node_modules/ bun.lockb",
29-
"postinstall": "paraglide-js compile --project ./project.inlang"
30-
},
31-
"devDependencies": {
32-
"@inlang/paraglide-js": "1.2.5",
33-
"@inlang/paraglide-js-adapter-vite": "^1.2.14",
34-
"@storybook/addon-actions": "^7.6.14",
35-
"@storybook/addon-essentials": "^7.6.14",
36-
"@storybook/addon-interactions": "^7.6.14",
37-
"@storybook/addon-links": "^7.6.14",
38-
"@storybook/addon-styling": "^1.3.7",
39-
"@storybook/blocks": "^7.6.14",
40-
"@storybook/svelte": "^7.6.14",
41-
"@storybook/sveltekit": "^7.6.14",
42-
"@storybook/testing-library": "^0.2.2",
43-
"@stripe/stripe-js": "^2.4.0",
44-
"@sveltejs/adapter-vercel": "^5.1.0",
45-
"@sveltejs/kit": "^2.5.0",
46-
"@sveltejs/vite-plugin-svelte": "^3.0.2",
47-
"@typescript-eslint/eslint-plugin": "^6.21.0",
48-
"@typescript-eslint/parser": "^6.21.0",
49-
"autoprefixer": "^10.4.17",
50-
"drizzle-kit": "^0.20.14",
51-
"eslint": "^8.56.0",
52-
"eslint-config-prettier": "^9.1.0",
53-
"eslint-plugin-storybook": "^0.6.15",
54-
"eslint-plugin-svelte": "^2.35.1",
55-
"pg": "^8.11.3",
56-
"postcss": "^8.4.35",
57-
"prettier": "^3.2.5",
58-
"prettier-plugin-svelte": "^3.1.2",
59-
"prettier-plugin-tailwindcss": "^0.5.11",
60-
"react": "^18.2.0",
61-
"react-dom": "^18.2.0",
62-
"storybook": "^7.6.14",
63-
"stripe": "^14.16.0",
64-
"svelte": "^4.2.10",
65-
"svelte-check": "^3.6.4",
66-
"svelte-hero-icons": "^5.1.0",
67-
"svelte-stripe": "^1.1.4",
68-
"tailwindcss": "^3.4.1",
69-
"tslib": "^2.6.2",
70-
"typescript": "^5.3.3",
71-
"vite": "^5.1.1"
72-
},
73-
"dependencies": {
74-
"@felte/reporter-svelte": "^1.1.11",
75-
"@felte/validator-zod": "^1.0.17",
76-
"@fontsource/montserrat": "^5.0.16",
77-
"@fontsource/montserrat-alternates": "^5.0.8",
78-
"@supabase/auth-helpers-sveltekit": "^0.12.0",
79-
"@supabase/supabase-js": "2.39.3",
80-
"@trpc/client": "10.45.1",
81-
"@trpc/server": "10.45.1",
82-
"daisyui": "^4.6.2",
83-
"drizzle-orm": "^0.29.3",
84-
"felte": "^1.2.14",
85-
"postgres": "^3.4.3",
86-
"superjson": "^2.2.1",
87-
"trpc-sveltekit": "^3.5.26",
88-
"zod": "^3.22.4"
89-
}
90-
}
2+
"name": "kit-stack",
3+
"version": "1.0.0",
4+
"type": "module",
5+
"private": true,
6+
"engines": {
7+
"node": ">=20.0.0"
8+
},
9+
"scripts": {
10+
"dev": "bun db:generate && bun vite:dev",
11+
"build": "bun lang:build && bun db:generate && bun vite:build",
12+
"vite:dev": "bun vite dev",
13+
"vite:build": "bun vite build",
14+
"db:generate": "bun drizzle-kit generate:pg",
15+
"db:push": "bun drizzle-kit push:pg",
16+
"db:pull": "bun drizzle-kit introspect:pg",
17+
"db:studio": "bun drizzle-kit studio",
18+
"lang:studio": "bun x @inlang/cli open editor",
19+
"lang:build": "paraglide-js compile --project ./project.inlang",
20+
"preview": "bun vite preview",
21+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
22+
"format": "prettier --plugin-search-dir . --write .",
23+
"env:sync": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
24+
"vercel:build": "~/.bun/bin/bun lang:build && ~/.bun/bin/bun db:push && ~/.bun/bin/bun vite:build",
25+
"storybook": "STORYBOOK=true storybook dev -p 6006 -s ../static",
26+
"storybook:build": "STORYBOOK=true storybook build -s ../static",
27+
"storybook:serve": "bun x serve storybook-static",
28+
"deps:update": "bun x npm-check-updates -ui",
29+
"clean": "rm -rf node_modules/ bun.lockb",
30+
"postinstall": "paraglide-js compile --project ./project.inlang"
31+
},
32+
"devDependencies": {
33+
"@inlang/paraglide-js": "1.2.5",
34+
"@inlang/paraglide-js-adapter-vite": "^1.2.14",
35+
"@storybook/addon-actions": "^7.6.14",
36+
"@storybook/addon-essentials": "^7.6.14",
37+
"@storybook/addon-interactions": "^7.6.14",
38+
"@storybook/addon-links": "^7.6.14",
39+
"@storybook/addon-styling": "^1.3.7",
40+
"@storybook/blocks": "^7.6.14",
41+
"@storybook/svelte": "^7.6.14",
42+
"@storybook/sveltekit": "^7.6.14",
43+
"@storybook/testing-library": "^0.2.2",
44+
"@stripe/stripe-js": "^2.4.0",
45+
"@sveltejs/adapter-vercel": "^5.1.0",
46+
"@sveltejs/kit": "^2.5.0",
47+
"@sveltejs/vite-plugin-svelte": "^3.0.2",
48+
"@typescript-eslint/eslint-plugin": "^6.21.0",
49+
"@typescript-eslint/parser": "^6.21.0",
50+
"autoprefixer": "^10.4.17",
51+
"drizzle-kit": "^0.20.14",
52+
"eslint": "^8.56.0",
53+
"eslint-config-prettier": "^9.1.0",
54+
"eslint-plugin-storybook": "^0.6.15",
55+
"eslint-plugin-svelte": "^2.35.1",
56+
"pg": "^8.11.3",
57+
"postcss": "^8.4.35",
58+
"prettier": "^3.2.5",
59+
"prettier-plugin-svelte": "^3.1.2",
60+
"prettier-plugin-tailwindcss": "^0.5.11",
61+
"react": "^18.2.0",
62+
"react-dom": "^18.2.0",
63+
"storybook": "^7.6.14",
64+
"stripe": "^14.16.0",
65+
"svelte": "^4.2.10",
66+
"svelte-check": "^3.6.4",
67+
"svelte-hero-icons": "^5.1.0",
68+
"svelte-stripe": "^1.1.4",
69+
"tailwindcss": "^3.4.1",
70+
"tslib": "^2.6.2",
71+
"typescript": "^5.3.3",
72+
"vite": "^5.1.1"
73+
},
74+
"dependencies": {
75+
"@felte/reporter-svelte": "^1.1.11",
76+
"@felte/validator-zod": "^1.0.17",
77+
"@fontsource/montserrat": "^5.0.16",
78+
"@fontsource/montserrat-alternates": "^5.0.8",
79+
"@supabase/auth-helpers-sveltekit": "^0.12.0",
80+
"@supabase/supabase-js": "2.39.3",
81+
"@trpc/client": "10.45.1",
82+
"@trpc/server": "10.45.1",
83+
"daisyui": "^4.6.2",
84+
"drizzle-orm": "^0.29.3",
85+
"felte": "^1.2.14",
86+
"postgres": "^3.4.3",
87+
"superjson": "^2.2.1",
88+
"trpc-sveltekit": "^3.5.26",
89+
"zod": "^3.22.4"
90+
}
91+
}

‎project.inlang.json

Copy file name to clipboardExpand all lines: project.inlang.json
-19Lines changed: 0 additions & 19 deletions
This file was deleted.

‎src/lib/components/InternationalizationExample.svelte

Copy file name to clipboardExpand all lines: src/lib/components/InternationalizationExample.svelte
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import * as m from '../../paraglide/messages';
2+
import * as m from '$paraglide/messages';
33
import LanguageSwitch from './LanguageSwitch.svelte';
44
</script>
55

‎src/lib/components/LanguageSwitch.svelte

Copy file name to clipboardExpand all lines: src/lib/components/LanguageSwitch.svelte
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { setLanguageTag, languageTag, type AvailableLanguageTag, availableLanguageTags} from '../../paraglide/runtime';
2+
import { setLanguageTag, languageTag, type AvailableLanguageTag, availableLanguageTags} from '$paraglide/runtime';
33
44
let lang: AvailableLanguageTag = languageTag()
55

‎src/routes/+layout.svelte

Copy file name to clipboardExpand all lines: src/routes/+layout.svelte
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import { afterNavigate, invalidate } from "$app/navigation";
66
import { fly } from "svelte/transition";
77
import { cubicIn, cubicOut } from "svelte/easing";
8-
import { setLanguageTag, onSetLanguageTag, type AvailableLanguageTag } from "../paraglide/runtime";
8+
import { setLanguageTag, onSetLanguageTag, type AvailableLanguageTag } from "$paraglide/runtime";
99
import { browser } from "$app/environment";
1010
import { onMount } from 'svelte';
1111
import { disableScrollHandling } from '$app/navigation';
@@ -50,11 +50,11 @@
5050
</div>
5151
{:else}
5252
{#key data.url + languageTag}
53-
<div
53+
<div
5454
in:fly={{ easing: cubicOut, duration: 250, delay: 350, y: 10 }}
5555
out:fly={{ easing: cubicIn, duration: 250, y: -10 }}
56-
>
57-
<slot />
58-
</div>
56+
>
57+
<slot />
58+
</div>
5959
{/key}
6060
{/if}

‎svelte.config.js

Copy file name to clipboardExpand all lines: svelte.config.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const config = {
66
preprocess: vitePreprocess(),
77

88
kit: {
9-
adapter: adapter()
9+
adapter: adapter(),
10+
alias: {
11+
$paraglide: './src/paraglide'
12+
}
1013
}
1114
};
1215

‎vite.config.ts

Copy file name to clipboardExpand all lines: vite.config.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export default defineConfig({
1010
noExternal: ['@inlang/paraglide-js']
1111
},
1212
plugins: [
13-
sveltekit(),
1413
paraglide({
1514
project: './project.inlang',
1615
outdir: './src/paraglide'
17-
})
16+
}),
17+
sveltekit()
1818
]
1919
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.