Bladeren bron

Localized "hours" and "minutes"

Ivan Valkou 4 jaren geleden
bovenliggende
commit
1cca4eddf8

+ 1 - 1
Dependencies/LibreTransmitter/Sources/LibreTransmitter/Common/NotificationHelper.swift

@@ -434,7 +434,7 @@ public enum NotificationHelper {
 
 
             let hours = minutesLeft == 0 ? 0 : round(minutesLeft/60)
             let hours = minutesLeft == 0 ? 0 : round(minutesLeft/60)
 
 
-            let dynamicText =  hours <= 1 ?  "minutes: \(minutesLeft.twoDecimals)" : "hours: \(hours.twoDecimals)"
+            let dynamicText =  hours <= 1 ?  NSLocalizedString("minutes", comment: "minutes") + ": \(minutesLeft.twoDecimals)" : NSLocalizedString("hours", comment: "hours") + ": \(hours.twoDecimals)"
 
 
             let content = UNMutableNotificationContent()
             let content = UNMutableNotificationContent()
             content.title = NSLocalizedString("Sensor Ending Soon", comment: "Sensor Ending Soon")
             content.title = NSLocalizedString("Sensor Ending Soon", comment: "Sensor Ending Soon")