diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-11 20:46:58 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-11 20:47:06 +0100 |
| commit | 6561771c435f9d9bed1589b5ed13d17aee0b7873 (patch) | |
| tree | 2c47e60fa4aaaa5bf1e151838ac197a61f4377cc /code/app/src/routes/(main)/+layout.ts | |
| parent | 8da37c77cae0c7f712a775e3996afd9d84b0f9af (diff) | |
| download | greatoffice-6561771c435f9d9bed1589b5ed13d17aee0b7873.tar.xz greatoffice-6561771c435f9d9bed1589b5ed13d17aee0b7873.zip | |
feat: Add frontpage
Diffstat (limited to 'code/app/src/routes/(main)/+layout.ts')
| -rw-r--r-- | code/app/src/routes/(main)/+layout.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/code/app/src/routes/(main)/+layout.ts b/code/app/src/routes/(main)/+layout.ts index 0509aaf..3893260 100644 --- a/code/app/src/routes/(main)/+layout.ts +++ b/code/app/src/routes/(main)/+layout.ts @@ -1,10 +1,10 @@ -import type {LayoutLoad} from "./$types"; -import type {Locales} from "$i18n/i18n-types"; -import {loadLocaleAsync} from "$i18n/i18n-util.async"; -import {setLocale} from "$i18n/i18n-svelte"; +import type { LayoutLoad } from "./$types"; +import type { Locales } from "$i18n/i18n-types"; +import { loadLocaleAsync } from "$i18n/i18n-util.async"; +import { setLocale } from "$i18n/i18n-svelte"; -export const load: LayoutLoad<{ locale: Locales }> = async ({data: {locale}}) => { +export const load: LayoutLoad<{ locale: Locales }> = async ({ data: { locale } }) => { await loadLocaleAsync(locale); setLocale(locale); - return {locale}; + return { locale }; };
\ No newline at end of file |
