Locale switcher fix

This commit is contained in:
Henrik Larsson 2023-08-13 23:00:00 +02:00
parent f7129605ec
commit b95cca0fcc

View File

@ -28,7 +28,7 @@ export default function LocaleSwitcher() {
// const translations = localeData.translations; // const translations = localeData.translations;
const redirectedPathName = (locale: string) => { const redirectedPathName = () => {
if (!pathName) return '/'; if (!pathName) return '/';
// if (translations.length > 0) { // if (translations.length > 0) {
@ -43,7 +43,7 @@ export default function LocaleSwitcher() {
// } // }
// } // }
return `/${locale}`; return `/`;
}; };
const [isOpen, setIsOpen] = useState(false); const [isOpen, setIsOpen] = useState(false);