diff Simoleon/Conversion.swift @ 29:c52966834f83

Add localised strings
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Thu, 22 Jul 2021 22:30:54 +0100
parents 4f862c618b44
children f76d0e26c178
line wrap: on
line diff
--- a/Simoleon/Conversion.swift	Thu Jul 22 19:06:01 2021 +0100
+++ b/Simoleon/Conversion.swift	Thu Jul 22 22:30:54 2021 +0100
@@ -62,14 +62,16 @@
                 CurrencySelector(currencyPair: $currencyPair, showingCurrencySelector: $showingCurrencySelector)
             }
         }
-        .navigationTitle("Conversion")
+        .navigationTitle(Text("Conversion", comment: "Navigation title"))
         .toolbar {
             ToolbarItem(placement: .cancellationAction) {
                 if isEditing {
-                    Button("Cancel", action: {
+                    Button(action: {
                         UIApplication.shared.dismissKeyboard()
                         isEditing = false
-                    })
+                    }) {
+                        Text("Cancel", comment: "Button to stop editing textfield")
+                    }
                 }
             }
         }