fix(l10n): 以简体中文统一英文与繁体翻译并校验完整性
This commit is contained in:
@@ -74,7 +74,7 @@ extension MenuPanelView {
|
||||
title: "metric.gpu", symbol: "square.grid.2x2", color: Color("MetricGPU"), value: MetricFormat.percent(snapshot.gpuUsage),
|
||||
status: snapshot.gpuTemperature.map { "\(Int($0.rounded()))°C" },
|
||||
statusHelp: Text("gpu.temperatureHelp"),
|
||||
detail: snapshot.gpu?.coreCount.map { String(format: String(localized: "gpu.coreCountFormat"), $0) }
|
||||
detail: snapshot.gpu?.coreCount.map { String(format: AppLocalization.string("gpu.coreCountFormat", locale: locale), $0) }
|
||||
) {
|
||||
PanelTrendChart(
|
||||
dates: samples.map(\.date), first: samples.map(\.gpu),
|
||||
|
||||
@@ -8,6 +8,7 @@ struct MenuPanelView: View {
|
||||
let settingsPresentation: SettingsPresentation
|
||||
var presentation = PanelPresentation()
|
||||
var onOpenSettings: () -> Void = {}
|
||||
@Environment(\.locale) var locale
|
||||
@Environment(\.accessibilityReduceMotion) var reduceMotion
|
||||
@State private var panelSize = PanelLayout.contentSize(visible: NSScreen.main?.visibleFrame ?? CGRect(x: 0, y: 0, width: 1000, height: 760))
|
||||
@State var selectedInterface = ""
|
||||
|
||||
Reference in New Issue
Block a user