SOLVED

Re: How to utilize tokens for email translations?

Go to solution
SanfordWhiteman
Level 10 - Community Moderator

Re: How to utilize tokens for email translations?

Great!

Broderick_Klem1
Level 4

Re: How to utilize tokens for email translations?

Hey @SanfordWhiteman, we are wanting to use a similar approach, but how would we structure the "translatedText" token if we're wanting to use a "contains" instead of "is" for our language field? We use "lead.browserLanguage" as our way of defining which language they get and they contain things like "es-LA" or "es-Pt", etc. So in that case I'd want the map to say something like "if contains "es" then: [Spanish translation]

SanfordWhiteman
Level 10 - Community Moderator

Re: How to utilize tokens for email translations?

Sounds like startsWith, not contains! Otherwise a lot of confusion will ensue.

 

The token with the translations would be structured the same. The token that finds the current translation couldn't just grab the matching property, though. It has to loop (#foreach) over the entries and then use startsWith.