-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Description
To make the email or SMS messages more user friendly, add i18n support for the messages.
With the detected or selected language in Wallet, send email or SMS messages in corresponding languages.
e.g. Create new accounts with email:
near-contract-helper/utils/email.js
Lines 36 to 55 in 4fa1497
| const getNewAccountEmail = (accountId, recoverUrl, securityCode) => template({ | |
| title: 'Welcome to NEAR Wallet', | |
| contentPreview: `This message contains your account activation code and recovery link for ${accountId}.`, | |
| content: [{ | |
| html: `This message contains your account activation code and recovery link for <b>${accountId}</b>. Keep this Email safe, and <strong>DO NOT SHARE IT!</strong> <span style="color:#DF2626;">We cannot resend this Email.</span>` | |
| }, | |
| { | |
| html: '1. Confirm your activation code to finish creating your account:' | |
| }, | |
| { | |
| blockquote: true, | |
| html: securityCode | |
| }, | |
| { | |
| html: `2. In the event that you need to recover your account, click the link below, and follow the directions in NEAR Wallet. | |
| ` | |
| }, { | |
| html: `<a href="${recoverUrl}">Recover my Account</a>` | |
| }], | |
| }); |
Metadata
Metadata
Assignees
Labels
No labels