Update translation keys

This commit is contained in:
Garth Vander Houwen 2025-04-30 08:19:30 -07:00
parent cf0836feef
commit b8dbfc9260
4 changed files with 3 additions and 6 deletions

View file

@ -37135,9 +37135,6 @@
}
}
}
},
"uptime" : {
},
"Uptime" : {
"localizations" : {

View file

@ -14,7 +14,7 @@ func telemetryToCsvFile(telemetry: [TelemetryEntity], metricsType: Int) -> Strin
let dateFormatString = (localeDateFormat ?? "MM/dd/YY j:mma").replacingOccurrences(of: ",", with: "")
if metricsType == 0 {
// Create Device Metrics Header
csvString = "\("battery.level".localized), \("Voltage".localized), \("Channel Utilization".localized), \("airtime".localized), \("uptime".localized), \("Timestamp".localized)"
csvString = "\("battery.level".localized), \("Voltage".localized), \("Channel Utilization".localized), \("airtime".localized), \("Uptime".localized), \("Timestamp".localized)"
for dm in telemetry where dm.metricsType == 0 {
csvString += "\n"
csvString += dm.batteryLevel?.formatted(.number.grouping(.never)) ?? ""

View file

@ -147,7 +147,7 @@ struct NodeDetail: View {
if let dm = node.telemetries?.filtered(using: NSPredicate(format: "metricsType == 0")).lastObject as? TelemetryEntity, let uptimeSeconds = dm.uptimeSeconds {
HStack {
Label {
Text("\("uptime".localized)")
Text("\("Uptime".localized)")
} icon: {
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.green)

View file

@ -98,7 +98,7 @@ struct PaxCounterLog: View {
TableColumn("paxcounter.total") { pc in
Text("\(pc.wifi + pc.ble)")
}
TableColumn("uptime") { pc in
TableColumn("Uptime") { pc in
let now = Date.now
let later = now + TimeInterval(pc.uptime)
let components = (now..<later).formatted(.components(style: .condensedAbbreviated))