Skip to content

Commit f896d2d

Browse files
committed
fix: refresh router after locale change in footer component
1 parent 7886e53 commit f896d2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/website/components/Footer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export function Footer() {
9494
router.replace("/", {
9595
locale: locale as "en" | "zh-Hans" | "fr" | "es",
9696
});
97+
98+
router.refresh();
9799
}}
98100
value={locale}
99101
>

0 commit comments

Comments
 (0)