Move templates to a folder for translations.

This commit is contained in:
gaba
2017-05-25 10:43:34 -04:00
parent 4ff7da864e
commit 09bd0a6735
17 changed files with 48 additions and 2 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ const templates = {
data: {}
};
// load the temlates per request during development
// load the templates per request during development
templates.render = (name, format = 'txt', context) => new Promise((resolve, reject) => {
// If we are in production mode, check the view cache.
@@ -50,7 +50,7 @@ templates.render = (name, format = 'txt', context) => new Promise((resolve, reje
return resolve(view(context));
});
});
}); // ends templates.render
const options = {
host: SMTP_HOST,
@@ -0,0 +1,3 @@
<p>Un correo de confirmación ha sido pedido para esta cuenta: <b><%= email %></b>.</p>
<p>To confirm the account, please visit the following link: <a href="<%= rootURL %>/admin/confirm-email#<%= token %>">Confirm Email</a></p>
<p>If you did not request this, you can safely ignore this email.</p>
@@ -0,0 +1,9 @@
A email confirmation has been requested for the following account:
<%= email %>
To confirm the account, please visit the following link:
<%= rootURL %>/confirm/endpoint#<%= token %>
If you did not request this, you can safely ignore this email.
@@ -0,0 +1,3 @@
<p>A email confirmation has been requested for the following account: <b><%= email %></b>.</p>
<p>To confirm the account, please visit the following link: <a href="<%= rootURL %>/admin/confirm-email#<%= token %>">Confirm Email</a></p>
<p>If you did not request this, you can safely ignore this email.</p>
@@ -0,0 +1,9 @@
A email confirmation has been requested for the following account:
<%= email %>
To confirm the account, please visit the following link:
<%= rootURL %>/confirm/endpoint#<%= token %>
If you did not request this, you can safely ignore this email.
@@ -0,0 +1 @@
<%= body %>
@@ -0,0 +1 @@
<%= body %>
+1
View File
@@ -0,0 +1 @@
<%= body %>
+1
View File
@@ -0,0 +1 @@
<%= body %>
@@ -0,0 +1,2 @@
<p>We received a request to reset your password. If you did not request this change, you can ignore this email.<br />
If you did, <a href="<%= rootURL %>/admin/password-reset#<%= token %>">please click here to reset password</a>.</p>
@@ -0,0 +1,5 @@
We received a request to reset your password, click here to reset your password:
<%= rootURL %>/admin/password-reset#<%= token %>
If you did not request this change, you can ignore this email.
@@ -0,0 +1,2 @@
<p>We received a request to reset your password. If you did not request this change, you can ignore this email.<br />
If you did, <a href="<%= rootURL %>/admin/password-reset#<%= token %>">please click here to reset password</a>.</p>
@@ -0,0 +1,5 @@
We received a request to reset your password, click here to reset your password:
<%= rootURL %>/admin/password-reset#<%= token %>
If you did not request this change, you can ignore this email.
@@ -0,0 +1 @@
<%= body.replace(/\n/g, '<br />') %>
@@ -0,0 +1 @@
<%= body %>
+1
View File
@@ -0,0 +1 @@
<%= body.replace(/\n/g, '<br />') %>
+1
View File
@@ -0,0 +1 @@
<%= body %>