소스 검색

String interpolation to have string localized with SwiftUI.
"%@ U/hr" and "0 U/hr".

(cherry picked from commit 98187dae2056368abe7bd99285cd29f2715935c9)

Jon Mårtensson 4 년 전
부모
커밋
4d47fd4bf4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 1 - 1
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -91,7 +91,7 @@ extension Home {
                         .font(.system(size: 12, weight: .bold)).foregroundColor(.loopGray)
                         .padding(.leading, 8)
                 } else if let tempRate = viewModel.tempRate {
-                    Text((numberFormatter.string(from: tempRate as NSNumber) ?? "0") + " U/hr")
+                    Text("\(numberFormatter.string(from: tempRate as NSNumber) ?? "0") U/hr")
                         .font(.system(size: 12, weight: .bold)).foregroundColor(.insulin)
                         .padding(.leading, 8)
                 }