adds i18n

This commit is contained in:
Christian Beutel
2024-02-29 23:26:18 +01:00
parent 528b443aa7
commit 5e19a4e8bb
45 changed files with 1520 additions and 638 deletions

View File

@@ -1,8 +1,8 @@
import { pb } from '$lib/pocketbase'
import { currentUser } from '$lib/stores/user_store'
import { currentUser, type User } from '$lib/stores/user_store'
pb.authStore.loadFromCookie(document.cookie)
pb.authStore.onChange(() => {
currentUser.set(pb.authStore.model)
currentUser.set(pb.authStore.model as User)
document.cookie = pb.authStore.exportToCookie({ httpOnly: false })
}, true)
}, true)