From 4e63ea50afc01cecf41247922f2cef9cda926577 Mon Sep 17 00:00:00 2001 From: Anatoly Kopyl Date: Sun, 6 Jul 2025 21:33:14 +0300 Subject: [PATCH] Fix locale switch on prefetch --- src/routes/+layout.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {}; };