Fix lang change not showing without full page refresh
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle 2026-03-19 22:00:31 +02:00
parent 096c0fe5ea
commit 6e64155c7e

View File

@ -79,6 +79,8 @@ export const shouldRevalidate: ShouldRevalidateFunction = (args) => {
const json = args.json as Record<string, unknown> | undefined;
if (json?.revalidateRoot === true) return true;
if (args.nextUrl.searchParams.has("lng")) return true;
return false;
};