Fix locale switch on prefetch
All checks were successful
Deploy / build-and-publish (push) Successful in 2m13s
Deploy / deploy (push) Successful in 12s

This commit is contained in:
2025-07-06 21:33:14 +03:00
parent e4392a6781
commit 4e63ea50af

View File

@@ -2,10 +2,9 @@ import {loadTranslations} from '$lib/translations';
import type {LayoutLoad} from "./$types"; import type {LayoutLoad} from "./$types";
export const load: LayoutLoad = async ({ url, data }) => { export const load: LayoutLoad = async ({ url, data }) => {
const { pathname } = url;
const { locale } = data.i18n const { locale } = data.i18n
await loadTranslations(locale, pathname); await loadTranslations(locale);
return {}; return {};
}; };