From b3f750c30d2baf1d54bf1f438762a5e42d6b1a50 Mon Sep 17 00:00:00 2001 From: maplezzk <34745236+maplezzk@users.noreply.github.com> Date: Sat, 1 Aug 2026 16:30:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=BA=E5=88=86=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=AD=9B=E9=80=89=E4=B8=8E=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Sources/Views/LogsView.swift | 5 +++++ app/Sources/en.lproj/Localizable.strings | 5 ++++- app/Sources/zh.lproj/Localizable.strings | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/Sources/Views/LogsView.swift b/app/Sources/Views/LogsView.swift index dcf5811..e68d311 100644 --- a/app/Sources/Views/LogsView.swift +++ b/app/Sources/Views/LogsView.swift @@ -44,6 +44,7 @@ struct LogsView: View { } .pickerStyle(.menu) .labelsHidden() + .help(loc("logs.filter.levelHelp")) Text(loc("logs.filter.type")) .font(.caption) @@ -63,6 +64,9 @@ struct LogsView: View { Spacer() + Text(loc("logs.recordLevel")) + .font(.caption) + .foregroundColor(.secondary) Picker("", selection: Binding( get: { viewModel.logLevel }, set: { newLevel in @@ -76,6 +80,7 @@ struct LogsView: View { } .pickerStyle(.menu) .labelsHidden() + .help(loc("logs.recordLevelHelp")) Button(action: { viewModel.autoScroll.toggle() }) { Image(systemName: viewModel.autoScroll ? "arrow.down.to.line.circle.fill" : "arrow.down.to.line.circle") diff --git a/app/Sources/en.lproj/Localizable.strings b/app/Sources/en.lproj/Localizable.strings index 743556b..4743837 100644 --- a/app/Sources/en.lproj/Localizable.strings +++ b/app/Sources/en.lproj/Localizable.strings @@ -209,8 +209,11 @@ "logs.totalCount" = "%d entries"; "logs.autoScroll.on" = "Auto-scroll: ON (click to disable)"; "logs.autoScroll.off" = "Auto-scroll: OFF (click to enable)"; -"logs.filter.level" = "Level"; +"logs.filter.level" = "Display level"; "logs.filter.type" = "Type"; +"logs.filter.levelHelp" = "Only filters logs that have already been recorded"; +"logs.recordLevel" = "Record level"; +"logs.recordLevelHelp" = "Logs below this level are not recorded"; "dashboard.serviceStatus" = "Service Status"; "dashboard.online" = "Online"; "dashboard.offline" = "Offline"; diff --git a/app/Sources/zh.lproj/Localizable.strings b/app/Sources/zh.lproj/Localizable.strings index 361ede3..a0ee79a 100644 --- a/app/Sources/zh.lproj/Localizable.strings +++ b/app/Sources/zh.lproj/Localizable.strings @@ -361,8 +361,11 @@ "menu.minimize" = "最小化"; "menu.close" = "关闭"; "menu.help" = "帮助"; -"logs.filter.level" = "级别"; +"logs.filter.level" = "显示级别"; "logs.filter.type" = "类型"; +"logs.filter.levelHelp" = "只筛选当前已记录的日志"; +"logs.recordLevel" = "记录级别"; +"logs.recordLevelHelp" = "低于此级别的日志不会被记录"; "adapter.importFromProvider" = "导入模型"; "test.copyCurl" = "复制 curl";