Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Refactor emails templates code

Aleksander Spyra82ba26d1200d
diff --git a/templates/templated_email/account/account_delete.email b/templates/templated_email/account/account_delete.email
index 0439fd5e00..c93f1dd045 100644
--- a/templates/templated_email/account/account_delete.email
+++ b/templates/templated_email/account/account_delete.email
@@ -5,9 +5,8 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Account delete reset e-mail text" %}
-Hi!
-
You're receiving this e-mail because you or someone else has requested a deletion of your user account at {{ domain }}.
Click the link below to delete your account.
@@ -18,7 +17,7 @@ Please note that this action is permanent and cannot be reversed.
{% endblocktrans %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/account/password_reset.email b/templates/templated_email/account/password_reset.email
index 39e6dd688c..494d1cb482 100644
--- a/templates/templated_email/account/password_reset.email
+++ b/templates/templated_email/account/password_reset.email
@@ -5,9 +5,8 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Password reset e-mail text" %}
-Hi!
-
You're receiving this e-mail because you or someone else has requested a password for your user account at {{ domain }}.
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.
{% endblocktrans %}
@@ -16,7 +15,7 @@ It can be safely ignored if you did not request a password reset. Click the link
{% endblocktrans %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/dashboard/customer/set_password.email b/templates/templated_email/dashboard/customer/set_password.email
index d55176eeaa..7f53013755 100644
--- a/templates/templated_email/dashboard/customer/set_password.email
+++ b/templates/templated_email/dashboard/customer/set_password.email
@@ -2,9 +2,8 @@
{% block subject %}{% blocktrans context "Set password for customer e-mail title" %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Set password for customer e-mail text" %}
-Hi!
-
You're receiving this e-mail because you have to set password for your customer account at {{ domain }}.
Click the link below to reset your password.
{% endblocktrans %}
@@ -12,7 +11,7 @@ Click the link below to reset your password.
{{ password_set_url }}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/dashboard/staff/promote_customer.email b/templates/templated_email/dashboard/staff/promote_customer.email
index b5f150fe02..e938676f61 100644
--- a/templates/templated_email/dashboard/staff/promote_customer.email
+++ b/templates/templated_email/dashboard/staff/promote_customer.email
@@ -2,13 +2,12 @@
{% block subject %}{% blocktrans %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
-Hi!
-
You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/dashboard/staff/set_password.email b/templates/templated_email/dashboard/staff/set_password.email
index 233ff67dce..d33f10c893 100644
--- a/templates/templated_email/dashboard/staff/set_password.email
+++ b/templates/templated_email/dashboard/staff/set_password.email
@@ -2,9 +2,8 @@
{% block subject %}{% blocktrans context "Set password for staff member e-mail title" %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Set password for staff member e-mail text" %}
-Hi!
-
You're receiving this e-mail because you have to set password for your staff member account at {{ domain }}.
Click the link below to reset your password.
{% endblocktrans %}
@@ -12,7 +11,7 @@ Click the link below to reset your password.
{{ password_set_url }}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/order/confirm_fulfillment.email b/templates/templated_email/order/confirm_fulfillment.email
index 9cdf336313..0b6673185b 100644
--- a/templates/templated_email/order/confirm_fulfillment.email
+++ b/templates/templated_email/order/confirm_fulfillment.email
@@ -7,9 +7,8 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Fulfillment confirmation email text" %}
-Hi!
-
Thank you for your order. Below is the list of shipped products.
{% endblocktrans %}
{% if fulfillment.tracking_number %}
@@ -23,7 +22,7 @@ You can track your shipment with {{ tracking_number }} code.
{% endfor %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/order/confirm_order.email b/templates/templated_email/order/confirm_order.email
index b73c963af4..ba99ceda2e 100644
--- a/templates/templated_email/order/confirm_order.email
+++ b/templates/templated_email/order/confirm_order.email
@@ -7,9 +7,8 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Order confirmation e-mail text" %}
-Hi!
-
Thank you for your order. Below is the list of ordered products. To see your payment details please visit:
{{ order_details_url }}{% endblocktrans %}
{% for line in order %}
@@ -29,7 +28,7 @@ Thank you for your order. Below is the list of ordered products. To see your pay
{% if order.shipping_address %}{{ order.shipping_address }}{% else %}{% trans "No shipping required" context "Order confirmation e-mail text" %}{% endif %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/order/payment/confirm_payment.email b/templates/templated_email/order/payment/confirm_payment.email
index 5c9384e817..5460e02b83 100644
--- a/templates/templated_email/order/payment/confirm_payment.email
+++ b/templates/templated_email/order/payment/confirm_payment.email
@@ -5,14 +5,13 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Payment confirmation email text" %}
-Hi!
-
Thank you for your payment. To see your payment details please visit:
{{ order_details_url }}
{% endblocktrans %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/order/update_fulfillment.email b/templates/templated_email/order/update_fulfillment.email
index 9c2284bb3e..7827e931d0 100644
--- a/templates/templated_email/order/update_fulfillment.email
+++ b/templates/templated_email/order/update_fulfillment.email
@@ -7,9 +7,8 @@
{% endblock %}
{% block plain %}
+{% trans "Hi!" context "Standard e-mail greeting" %}
{% blocktrans context "Fulfillment update email text" %}
-Hi!
-
Your shipping status has been updated. Below is the list of ordered products that have been updated with new tracking number.
{% endblocktrans %}
{% if fulfillment.tracking_number %}
@@ -23,7 +22,7 @@ You can track your shipment with {{ tracking_number }} code.
{% endfor %}
{% blocktrans trimmed context "Base email text" %}
-This is an automatically generated email, please do not reply.
+This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
{% blocktrans trimmed context "Base email footer" %}
Sincerely, {{ site_name }}
diff --git a/templates/templated_email/source/account_delete.mjml b/templates/templated_email/source/account_delete.mjml
index eaab16713a..4a15ca5512 100644
--- a/templates/templated_email/source/account_delete.mjml
+++ b/templates/templated_email/source/account_delete.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Account delete e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Account delete e-mail text" %}
diff --git a/templates/templated_email/source/confirm_fulfillment.mjml b/templates/templated_email/source/confirm_fulfillment.mjml
index 6cc6851f0e..bdec238874 100644
--- a/templates/templated_email/source/confirm_fulfillment.mjml
+++ b/templates/templated_email/source/confirm_fulfillment.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Fulfillment confirmation email text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Fulfillment confirmation email text" %}
diff --git a/templates/templated_email/source/confirm_order.mjml b/templates/templated_email/source/confirm_order.mjml
index eef4bda002..930ad24a76 100644
--- a/templates/templated_email/source/confirm_order.mjml
+++ b/templates/templated_email/source/confirm_order.mjml
@@ -11,7 +11,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Order confirmation e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Order confirmation e-mail text" %}
diff --git a/templates/templated_email/source/confirm_payment.mjml b/templates/templated_email/source/confirm_payment.mjml
index da1cf07a5f..44a4dea5f2 100644
--- a/templates/templated_email/source/confirm_payment.mjml
+++ b/templates/templated_email/source/confirm_payment.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Payment confirmation e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Payment confirmation e-mail text" %}
diff --git a/templates/templated_email/source/password_reset.mjml b/templates/templated_email/source/password_reset.mjml
index eada7608bb..c70568bdfb 100644
--- a/templates/templated_email/source/password_reset.mjml
+++ b/templates/templated_email/source/password_reset.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Password reset e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Password reset e-mail text" %}
diff --git a/templates/templated_email/source/promote_customer.mjml b/templates/templated_email/source/promote_customer.mjml
index 39cb2c1048..f96efdd7b7 100644
--- a/templates/templated_email/source/promote_customer.mjml
+++ b/templates/templated_email/source/promote_customer.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Promote customer to staff member confirmation e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Promote customer to staff member confirmation e-mail text" %}
diff --git a/templates/templated_email/source/set_customer_password.mjml b/templates/templated_email/source/set_customer_password.mjml
index 0f94d5df26..e3fc205360 100644
--- a/templates/templated_email/source/set_customer_password.mjml
+++ b/templates/templated_email/source/set_customer_password.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Set password for customer e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Set password for customer e-mail text" %}
diff --git a/templates/templated_email/source/set_password.mjml b/templates/templated_email/source/set_password.mjml
index 59483edad1..5ca0df6549 100644
--- a/templates/templated_email/source/set_password.mjml
+++ b/templates/templated_email/source/set_password.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Set password for staff member e-mail text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Set password for staff member e-mail text" %}
diff --git a/templates/templated_email/source/shared/footer.mjml b/templates/templated_email/source/shared/footer.mjml
index 59e86af5f8..e415e61138 100644
--- a/templates/templated_email/source/shared/footer.mjml
+++ b/templates/templated_email/source/shared/footer.mjml
@@ -2,7 +2,7 @@
<mj-column>
<mj-text>
{% blocktrans trimmed context "Base email text" %}
- This is an automatically generated email, please do not reply.
+ This is an automatically generated e-mail, please do not reply.
{% endblocktrans %}
</mj-text>
</mj-column>
diff --git a/templates/templated_email/source/update_fulfillment.mjml b/templates/templated_email/source/update_fulfillment.mjml
index 7a7614736f..54531f7547 100644
--- a/templates/templated_email/source/update_fulfillment.mjml
+++ b/templates/templated_email/source/update_fulfillment.mjml
@@ -10,7 +10,7 @@
<mj-section>
<mj-column>
<mj-text font-size="16px">
- {% trans "Hi!" context "Fulfillment update email text" %}
+ {% trans "Hi!" context "Standard e-mail greeting" %}
</mj-text>
<mj-text>
{% blocktrans trimmed context "Fulfillment update email text" %}