loading...
; else if (req.error) content =errored!
; else if (req.value) { - const subs = req.value.map((v) => { + const subs = req.value.filter(Boolean).map((v) => { const languageName = getLanguageFromIETF(v.attributes.language) ?? "unknown"; return { diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 28a98b4a..3d35fd31 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -18,6 +18,7 @@ import { AccountWithToken, useAuthStore } from "@/stores/auth"; import { useThemeStore } from "@/stores/theme"; import { SubPageLayout } from "./layouts/SubPageLayout"; +import { LocalePart } from "./settings/LocalePart"; function SettingsLayout(props: { children: React.ReactNode }) { const { isMobile } = useIsMobile(); @@ -79,6 +80,9 @@ export function SettingsPage() {Application language
++ Language applied to the entire application. +
+