diff --git a/components/SwitchLang.tsx b/components/SwitchLang.tsx
index 8d40dd1..2f88daa 100644
--- a/components/SwitchLang.tsx
+++ b/components/SwitchLang.tsx
@@ -4,6 +4,7 @@ import { Menu, Transition } from '@headlessui/react'
import { useRouter } from 'next/router'
import Link from 'next/link'
+import { useCookies, withCookies } from 'react-cookie'
// https://headlessui.dev/react/menu#integrating-with-next-js
const CustomLink = ({ href, children, as, locale, ...props }): JSX.Element => {
@@ -28,6 +29,8 @@ const localeText = (locale: string): string => {
const SwitchLang = () => {
const { locales, pathname, query, asPath } = useRouter()
+ const [_, setCookie] = useCookies(['NEXT_LOCALE'])
+
return (