Skip to content

Commit

Permalink
Force full page reload on language change (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
fozziethebeat committed Feb 8, 2023
1 parent c9d283a commit 7c5f463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/components/LanguageSelector/LanguageSelector.tsx
Expand Up @@ -37,7 +37,8 @@ const LanguageSelector = () => {
const locale = option.target.value;
setCookie("NEXT_LOCALE", locale, { path: "/" });
const path = router.asPath;
return router.push(path, path, { locale });
await router.push(path, path, { locale });
router.reload();
},
[router]
);
Expand Down

0 comments on commit 7c5f463

Please sign in to comment.