From 505386adbad6a07285cfcd7e64a1b3e609c1c5e8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 2 May 2023 14:09:51 -0700 Subject: nfc wip --- src/routes/+layout.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/routes/+layout.js (limited to 'src/routes/+layout.js') diff --git a/src/routes/+layout.js b/src/routes/+layout.js deleted file mode 100644 index add74f87..00000000 --- a/src/routes/+layout.js +++ /dev/null @@ -1,8 +0,0 @@ -import { loadTranslations, locale } from '$lib/translations'; -export const load = async ({ url }) => { - const { pathname } = url; - const defaultLocale = 'en'; // get from cookie, user session, ... - const initLocale = locale.get() || defaultLocale; // set default if no locale already set - await loadTranslations(initLocale, pathname); // keep this just before the `return` - return {}; -}; -- cgit v1.2.3