2

Is it possible to use AmpScript/SSJS to get a text from an element and translate it to other languages?

Example: Before - Hello | After - Ciao

1 Answer 1

2

You could use the AMPscript HTTPGet() function or the SSJS Get() function in conjunction with the Google Translate API where you make a GET request (using AMPscript or SSJS) to the following URL (including your API key in the URL parameter):

https://www.googleapis.com/language/translate/v2?key=YOUR_API_KEY&q=hello%20world&source=en&target=de

Refer to the Google Translate API documentation for further information how to use their API.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .