refactor: update languages data structure

This commit is contained in:
henrygd
2026-01-09 12:19:43 -05:00
parent 77da744008
commit 8b84231042
4 changed files with 35 additions and 151 deletions

View File

@@ -53,7 +53,7 @@ export function getLocale() {
}
locale = (locale || "en").split("-")[0]
// use en if locale is not in languages
if (!languages.some((l) => l.lang === locale)) {
if (!languages.some((l) => l[0] === locale)) {
locale = "en"
}
return locale