Relocate board adjuster + start working on translations
[vchess.git] / client / src / components / ContactForm.vue
index 734d7f1..ed4729e 100644 (file)
@@ -34,7 +34,7 @@ export default {
     };
   },
   methods: {
-               // Note: not using Vue here, but would be possible
+    // Note: not using Vue here, but would be possible
     trySendMessage: function() {
       let email = document.getElementById("userEmail");
       let subject = document.getElementById("mailSubject");
@@ -43,8 +43,8 @@ export default {
       if (!!error)
         return alert(error);
       if (content.value.trim().length == 0)
-        return alert("Empty message");
-      if (subject.value.trim().length == 0 && !confirm("No subject. Send anyway?"))
+        return alert(this.st.tr["Empty message"]);
+      if (subject.value.trim().length == 0 && !confirm(this.st.tr["No subject. Send anyway?"]))
         return;
 
       // Message sending:
@@ -65,7 +65,7 @@ export default {
         }
       );
     },
-       },
+  },
 };
 </script>