mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Locale switcher fix
This commit is contained in:
parent
f7129605ec
commit
b95cca0fcc
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user