Maptio / maptio

http://www.maptio.com
Other
24 stars 5 forks source link

Internationalise the invitation email (sent internally) #767

Closed rgoj closed 2 years ago

rgoj commented 2 years ago

To achieve full i18n, we need to internationalise emails. Some are sent by Auth0, but some we send through the app itself (and then, of course, we also have email campaigns, which is a different story). Currently, we only send one email ourselves from our express server: when someone is invited to join an organisation.

To send that email, we transform an .html template with lodash/template and that templating function does not support i18n. Although we could use some tricks, it might be simpler to switch to something like this: