Parcourir la source

Done and Clear buttons will now be localized. (#73)

Jon B Mårtensson il y a 4 ans
Parent
commit
89e695f22d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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:))