No comma needed lol

This commit is contained in:
wearrrrr 2024-07-29 14:30:05 -05:00
parent ab3049dd84
commit 5a48e2d71e

View file

@ -10,8 +10,7 @@ for (const lang in ui) {
}
function getLangFromUrl(url: URL) {
// comma lol
const [, lang] = url.pathname.split("/");
const [lang] = url.pathname.split("/");
if (lang in ui) return lang as keyof typeof ui;
return defaultLang;
}