aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+layout.js')
-rw-r--r--src/routes/+layout.js8
1 files changed, 0 insertions, 8 deletions
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 {};
-};