Просмотр исходного кода

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

Jon B Mårtensson 4 лет назад
Родитель
Сommit
89e695f22d
1 измененных файлов с 2 добавлено и 2 удалено
  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:))