diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index cdfd012..a31676d 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -2,10 +2,9 @@ import {loadTranslations} from '$lib/translations'; import type {LayoutLoad} from "./$types"; export const load: LayoutLoad = async ({ url, data }) => { - const { pathname } = url; const { locale } = data.i18n - await loadTranslations(locale, pathname); + await loadTranslations(locale); return {}; };