19 implement i18n (#29)

* init paraglide

* change export

* shared session check

* message param

* format

* check user is present

A session can exist without a user, if the user was recently deleted

* wtf

* lol bad redirect code
This commit is contained in:
Baobeld 2024-12-20 11:41:01 -05:00 committed by GitHub
parent 264f6d775d
commit 8969e2b8aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 84 additions and 49 deletions

View file

@ -1,8 +1,15 @@
import { defineConfig } from 'vitest/config';
import { paraglide } from '@inlang/paraglide-sveltekit/vite';
import { sveltekit } from '@sveltejs/kit/vite';
export default defineConfig({
plugins: [sveltekit()],
plugins: [
sveltekit(),
paraglide({
project: './project.inlang',
outdir: './src/lib/paraglide',
}),
],
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],