add english support for mail

This commit is contained in:
2022-09-15 11:37:01 +02:00
parent 5fce5c9636
commit 679d690f93
+2 -1
View File
@@ -23,6 +23,7 @@ const TIME_OUT = 60 * 1000 * 4//4 mins
const CONFIRMED_MESSAGE = "Your request for a Leather Goods appointment has been registered"
const CONFIRMED_MESSAGE_FR = "Votre demande de rendez-vous Maroquinerie a bien été enregistrée et nous vous en remercions."
const MESSAGE_URL_VALIDATION_FR = "Nous avons envoyé un lien par e-mail."
const MESSAGE_URL_VALIDATION_EN = "Please click on the link we sent by email"
const DOUBLE_REQUEST_ERROR_MESSAGE = "A request with the same data has already been validated today."
const DOUBLE_REQUEST_ERROR_MESSAGE_FR = "Une demande avec les données saisies a déjà été validée aujourdhui."
const TOO_MANY_REQUEST_ERROR_MESSAGE = "Due to a large number of requests"
@@ -284,7 +285,7 @@ class CommandorPage {
if (this.isFillingFields)
await this.getErrors()
} else {
if (content.includes(MESSAGE_URL_VALIDATION_FR)) {
if (content.includes(MESSAGE_URL_VALIDATION_FR) || content.includes(MESSAGE_URL_VALIDATION_EN)) {
console.log("successful");
await this.push_message_to_queue(PublishType.SUCCESS);
} else {