Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n support for Email or SMS content #462

Open
think-in-universe opened this issue Jul 13, 2021 · 0 comments
Open

i18n support for Email or SMS content #462

think-in-universe opened this issue Jul 13, 2021 · 0 comments

Comments

@think-in-universe
Copy link
Member

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:

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>`
}],
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant