summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/accounts.js10
-rw-r--r--i18n/en.i18n.json6
2 files changed, 10 insertions, 6 deletions
diff --git a/config/accounts.js b/config/accounts.js
index 3a6a116e..9ab26b33 100644
--- a/config/accounts.js
+++ b/config/accounts.js
@@ -53,9 +53,13 @@ if (Meteor.isServer) {
}
['resetPassword-subject', 'resetPassword-text', 'verifyEmail-subject', 'verifyEmail-text', 'enrollAccount-subject', 'enrollAccount-text'].forEach((str) => {
- const words = str.split('-');
- Accounts.emailTemplates[words[0]][words[1]] = (user, url) => {
- return TAPi18n.__(`email-${str}`, { user: user.getName(), url }, user.getLanguage());
+ const [templateName, field] = str.split('-');
+ Accounts.emailTemplates[templateName][field] = (user, url) => {
+ return TAPi18n.__(`email-${str}`, {
+ url,
+ user: user.getName(),
+ siteName: Accounts.emailTemplates.siteName,
+ }, user.getLanguage());
};
});
}
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index 6cc43f03..41e7ec88 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -126,17 +126,17 @@
"editLabelPopup-title": "Change Label",
"editProfilePopup-title": "Edit Profile",
"email": "Email",
- "email-enrollAccount-subject": "An account created for you on __url__",
+ "email-enrollAccount-subject": "An account created for you on __siteName__",
"email-enrollAccount-text": "Hello __user__,\n\nTo start using the service, simply click the link below.\n\n__url__\n\nThanks.\n",
"email-fail": "Sending email failed",
"email-invalid": "Invalid email",
"email-invite": "Invite via Email",
"email-invite-subject": "__inviter__ sent you an invitation",
"email-invite-text": "Dear __user__,\n\n__inviter__ invites you to join board \"__board__\" for collaborations.\n\nPlease follow the link below:\n\n__url__\n\nThanks.\n",
- "email-resetPassword-subject": "Reset your password on __url__",
+ "email-resetPassword-subject": "Reset your password on __siteName__",
"email-resetPassword-text": "Hello __user__,\n\nTo reset your password, simply click the link below.\n\n__url__\n\nThanks.\n",
"email-sent": "Email sent",
- "email-verifyEmail-subject": "Verify your email address on __url__",
+ "email-verifyEmail-subject": "Verify your email address on __siteName__",
"email-verifyEmail-text": "Hello __user__,\n\nTo verify your account email, simply click the link below.\n\n__url__\n\nThanks.\n",
"error-board-doesNotExist": "This board does not exist",
"error-board-notAdmin": "You need to be admin of this board to do that",