This commit is contained in:
Riordan Panayides 2022-08-05 14:03:50 +01:00
parent 145bc7dc97
commit 2b7758dae7
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ const AlphaModal = ({
const handleLanguageSelect = () => {
setSavedLanguage(language)
document.cookie = `NEXT_LOCALE=${savedLanguage}; max-age=31536000; path=/`
document.cookie = `NEXT_LOCALE=${language}; max-age=31536000; path=/`
router.push({ pathname, query }, asPath, { locale: language })
dayjs.locale(savedLanguage == 'zh_tw' ? 'zh-tw' : savedLanguage)
}