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:
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: