I have a SPA Universal Login which is localized that I use for and English and Spanish websites and I’m trying to configure how I can send Verification/Forgot Password Emails in both English and Spanish depending on the site the user is coming from. I’ve setup my custom email provider but the Auth0 docs tell me I can use only one template each for Verification/Forgot Password Emails. What is the recommended approach to support multiple languages for these email template types?
One thought I had is using some type of approach of if-else statement in the email templates where I have an English text version defined and a Spanish text version defined then use some type of condition to output the language I want to use? Maybe I can use the redirect_uri as my condition?