mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update translation keys
This commit is contained in:
parent
cf0836feef
commit
b8dbfc9260
4 changed files with 3 additions and 6 deletions
|
|
@ -37135,9 +37135,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"uptime" : {
|
||||
|
||||
},
|
||||
"Uptime" : {
|
||||
"localizations" : {
|
||||
|
|
|
|||
|
|
@ -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)) ?? ""
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue