Hi, so I tried to use my “re-written to be thread-safe” i18n mechanism which is inherently async because it uses dynamic imports for the i18n messages (it imports messages from modules). But “Accounts.emailTemplates.enrollAccount.text” does not work with async functions.
Accounts.emailTemplates.enrollAccount.text = async (user, url) => {
const i18n = await new I18n(user.profile.languages, "en").load();
const accountName = user.profile.displayName || user.emails[0].address;
return i18n.get(["EmailTemplates", "enrollAccount", "text"], { accountName, url });
};