stuff done

This commit is contained in:
2025-03-11 02:54:09 +02:00
parent 58e7ed2f06
commit 516b45fad9
90 changed files with 2950 additions and 9458 deletions

View File

@@ -21,7 +21,9 @@ export default function LocaleSwitcher() {
path: '/',
sameSite: 'Lax'
})
router.replace(window.location.pathname.replace(/^\/ru/, ''), {locale})
let path = window.location.pathname.replace(/^\/ru/, '')
if (path === '') path = '/'
router.replace(path, {locale})
}
return (