mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-14 00:41:50 +02:00
refactor: update languages data structure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user