Przeglądaj źródła

" U" in amount of insulin added without bolusing will now be localized

(cherry picked from commit eeec50fc43f14d6cc733a52c7056c72b3650e1ff)
Jon Mårtensson 5 lat temu
rodzic
commit
de01747641

+ 2 - 1
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -76,7 +76,8 @@ extension Bolus {
                 }
             }
             .alert(isPresented: $isAddInsulinAlertPresented) {
-                let amount = formatter.string(from: viewModel.amount as NSNumber)! + " U"
+                let amount = formatter
+                    .string(from: viewModel.amount as NSNumber)! + NSLocalizedString(" U", comment: "Insulin unit")
                 return Alert(
                     title: Text("Are you sure?"),
                     message: Text("Add \(amount) without bolusing"),