Is it possible to create a single email in different languages in Sendrid? I can’t seem to pass language parameter correctly. As a result, Sendgrid does not send the right language version to user.
If you’ve ever done this task please advise on how to do it!
I passed user language parameters to Sendgrid (plugin Sendgrid), as:
english = Current user’s language is English
spanish = Current user’s language is Spanish, etc.,
Thus, for Spanish user the parameters are: English = no, Spanish = yes
I also tried parameter
language = current user’s language’s display
Helas, Sendgrid does not detect any other languages except English…
The alternative solution, of course, is to create multiple templates, one for each language version, but this process is not very efficient, and a lot of letters will be difficult to maintain and update in the future…
Why don’t you make one template but make all the fields dynamic, then you can send whatever you want it to be from Bubble. Then you can add more languages in the future very easily as well. My template usually has something like Title, Body, Footer etc. Then I just send what I want from Bubble. One template with multiple uses.
Thank you so much for your answer! That is a smart approach!
Just one more question: if we pass the translations via fields with App text from Bubble, we can’t do text formatting, can we? The chunks of texts will appear in default format in Sendgrid template?
You can send along HTML and it should work. Maybe just use an HTML builder to create the HTML and save it. You can even have an admin page where you can build out your translations using an HTML plugin. Does that make sense?
Thank you so much for your advice!
I appreciate your suggestion, and I’ll look into using an HTML builder and saving the content as HTML. I’m not entirely sure I fully understand the part about building translations with HTML, but I’ll give it a try and see how it goes!