mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-25 20:27:44 +02:00
Fix locale routing (#247)
This commit is contained in:
parent
870a4bb13d
commit
0f35bd0518
5 changed files with 16 additions and 4 deletions
|
@ -17,7 +17,6 @@ export const LanguageSelect: React.VoidFunctionComponent<{
|
|||
Cookies.set("NEXT_LOCALE", e.target.value, {
|
||||
expires: 365,
|
||||
});
|
||||
router.push(router.asPath, router.asPath, { locale: e.target.value });
|
||||
onChange?.(e.target.value);
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue