From 879ebd2dc7248d09b23d477f750a309c3f77cbc1 Mon Sep 17 00:00:00 2001 From: lzt404 <2596933790@qq.com> Date: Thu, 23 Jul 2026 13:36:37 +0800 Subject: [PATCH] fix(i18n): display language options in their native names --- src/App.tsx | 13 +++---------- src/i18n/index.tsx | 10 ++++++++++ src/i18n/ja.ts | 4 ---- src/i18n/resources.ts | 8 -------- tests/i18n.test.ts | 11 ++++++++++- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 772f07d..d4230b8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -28,17 +28,10 @@ import { QuotaPage } from './pages/QuotaPage'; import { AgentsPage } from './pages/AgentsPage'; import { ThinkingAliasesPage } from './pages/ThinkingAliasesPage'; import { UsageRecordsPage } from './pages/UsageRecordsPage'; -import { useI18n } from './i18n'; +import { languageOptions, useI18n } from './i18n'; const CONTACT_URL = 'https://qm.qq.com/q/3queDaIG'; -const languageOptions = [ - { value: 'zh-CN', labelKey: 'app.language.zhCN' }, - { value: 'zh-TW', labelKey: 'app.language.zhTW' }, - { value: 'ja', labelKey: 'app.language.ja' }, - { value: 'en', labelKey: 'app.language.en' }, -] as const; - const pages = [ { id: 'kernel', @@ -282,7 +275,7 @@ function AppContent() { onClick={() => setLanguageMenuOpen((open) => !open)} >