How can I modify getVerificationEmailContent to support language-based email content?
Hello everyone,
I'm using Wasp's built-in authentication and have configured email verification in my main.wasp file. The functions getVerificationEmailContent and getPasswordResetEmailContent currently only accept an object with a verificationLink. However, I would like to send emails in different languages based on a language field stored in one of my database tables.
I've reviewed the documentation but couldn’t find a way to pass an extra parameter (e.g., the user's language) to these functions or to dynamically choose the email content based on the language.
How can I extend or modify these functions so that they can output different email content depending on the language specified in my database? Any guidance or pointers would be greatly appreciated.
Thank you!
I'm using Wasp's built-in authentication and have configured email verification in my main.wasp file. The functions getVerificationEmailContent and getPasswordResetEmailContent currently only accept an object with a verificationLink. However, I would like to send emails in different languages based on a language field stored in one of my database tables.
I've reviewed the documentation but couldn’t find a way to pass an extra parameter (e.g., the user's language) to these functions or to dynamically choose the email content based on the language.
How can I extend or modify these functions so that they can output different email content depending on the language specified in my database? Any guidance or pointers would be greatly appreciated.
Thank you!