浏览代码

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

Jon Mårtensson 5 年之前
父节点
当前提交
eeec50fc43
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 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 your sure?"),
                     message: Text("Add \(amount) without bolusing"),