From 1f1ee09a5fc4eb4b4a486ed25db70da1638f158a Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Tue, 3 Mar 2026 08:43:32 -0700 Subject: [PATCH] Dynamically list languages --- frontend/src/components/common/SettingsDialog.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/common/SettingsDialog.tsx b/frontend/src/components/common/SettingsDialog.tsx index e2d8475..5bfa2d7 100644 --- a/frontend/src/components/common/SettingsDialog.tsx +++ b/frontend/src/components/common/SettingsDialog.tsx @@ -46,6 +46,7 @@ import { import { cn } from "@/lib/utils"; import { useBackend, useBackendConfig } from "@/contexts/BackendContext"; import { GeminiAuthMethod, LLxprtProvider } from "@/types/backend"; +import { supportedLanguages, languageNames } from "@/i18n"; interface OpenRouterModel { id: string; @@ -249,10 +250,11 @@ export const SettingsDialog: React.FC = ({ - English - 简体中文 - 繁體中文 - Русский + {supportedLanguages.map((lang) => ( + + {languageNames[lang]} + + ))}