Closed lludol closed 6 years ago
Hello,
Can you write on your README that we have to set the "locale" attribute in the "locals" Object to the current locale to use the right language ?
email.send({ template: 'mars', message: { to: 'elon@spacex.com' }, locals: { locale: 'fr', // THIS name: 'Elon' } }).then(console.log).catch(console.error);
I had to read your code to find out how it works!
By the way, thank you for your work!
thanks @lludol for bringing this to my attention, I've updated the README
does this look OK to you?
https://github.com/niftylettuce/email-templates#localization
Hello,
Can you write on your README that we have to set the "locale" attribute in the "locals" Object to the current locale to use the right language ?
I had to read your code to find out how it works!
By the way, thank you for your work!