localization v1

This commit is contained in:
Sean Morley
2024-10-26 23:03:35 -04:00
parent 6f8864a13d
commit 6cf62cfb82
12 changed files with 661 additions and 64 deletions

View File

@@ -1,12 +1,15 @@
import { locale } from 'svelte-i18n';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async (event) => {
if (event.locals.user) {
return {
user: event.locals.user
user: event.locals.user,
locale: event.locals.locale
};
}
return {
user: null
user: null,
locale: event.locals.locale
};
};