Browse Source

Done and Clear buttons will now be localized.

(cherry picked from commit 44a365c3b1273b04e23893ba9d46b5f2d750b464)
Jon Mårtensson 5 năm trước cách đây
mục cha
commit
a75f29e71d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      FreeAPS/Sources/Views/DecimalTextField.swift

+ 2 - 2
FreeAPS/Sources/Views/DecimalTextField.swift

@@ -36,13 +36,13 @@ struct DecimalTextField: UIViewRepresentable {
             height: 44
         ))
         let clearButton = UIBarButtonItem(
-            title: "Clear",
+            title: NSLocalizedString("Clear", comment: "Clear button"),
             style: .plain,
             target: self,
             action: #selector(textfield.clearButtonTapped(button:))
         )
         let doneButton = UIBarButtonItem(
-            title: "Done",
+            title: NSLocalizedString("Done", comment: "Done button"),
             style: .done,
             target: self,
             action: #selector(textfield.doneButtonTapped(button:))