fix(menubar): 修正进程退出判断与公网刷新及风扇语言

This commit is contained in:
2026-11-03 22:12:44 +08:00
parent ea4d0e7f23
commit c8d7326a80
13 changed files with 238 additions and 49 deletions
+6
View File
@@ -30,6 +30,12 @@ import Foundation
let value = AppLocalization.string(key, locale: locale, bundle: bundle, table: table)
precondition(!value.isEmpty && value != key, "Missing built translation: \(language)/\(table)/\(key)")
}
for number in [1, 3, 10] {
let format = AppLocalization.string("gpu.fanNumber %lld", locale: locale, bundle: bundle)
let title = String(format: format, Int64(number))
let expected = ["en": "Fan", "zh-Hans": "风扇", "zh-Hant": "風扇"][language]!
precondition(title == "\(expected) \(number)", "Numbered fan must use the selected app locale")
}
let average = AppLocalization.string("gpu.recentAverage", locale: locale, bundle: bundle)
precondition(average == ["en": "Last-minute average", "zh-Hans": "近 1 分钟平均", "zh-Hant": "近 1 分鐘平均"][language])
}