From e4981ff5ef1320692a27fa3925ade55878ee972e Mon Sep 17 00:00:00 2001 From: flifloo Date: Fri, 11 Sep 2020 11:14:27 +0200 Subject: [PATCH] Some locals --- locales/en.json | 6 ++++++ locales/fr.json | 6 ++++++ views/order.pug | 8 ++++---- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/locales/en.json b/locales/en.json index b6b0304..32c7302 100644 --- a/locales/en.json +++ b/locales/en.json @@ -67,6 +67,12 @@ "firstDate": "First date", "lastDate": "Last date" }, + "payment": { + "successful": "Payment successful !", + "canceled": "Payment canceled", + "error": "An error occurred with the payment", + "retry": "Retry" + }, "firstName": "First name", "lastName": "Last name", "username": "Username", diff --git a/locales/fr.json b/locales/fr.json index 2a0e68a..c3b620f 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -67,6 +67,12 @@ "firstDate": "Première date", "lastDate": "Dernière date" }, + "payment": { + "successful": "Paiement réussi !", + "canceled": "Paiement annulé", + "error": "Une erreur est survenue lors du paiement", + "retry": "Recommencez" + }, "firstName": "Prénom", "lastName": "Nom de famille", "username": "Nom d'utilisateur", diff --git a/views/order.pug b/views/order.pug index b11f9ef..0c5ee05 100644 --- a/views/order.pug +++ b/views/order.pug @@ -4,11 +4,11 @@ block content div.card h1 Payment if (state === "success") - h2 Payment successful ! + h2=__("payment.successful") else if (state === "cancel") - h2 Payment canceled + h2=__("payment.canceled") else if (state === "error") - h2 An error occurred with the payment + h2=__("payment.error") if (state !== "success") a(href="/order/retry") - button Retry + button=__("payment.retry")