External APIs

SDL: Language Translation

Translate text between languages on the fly
Back to BLOCKS

About SDL: Language Translation

SDL's Language Cloud Machine Translation API provides self-learning machine translation for translating content and text.

The SDL Language Translation block enables you to translate text in-motion, opening up the possibilities for multilingual realtime chat applications, live-blogging, social media, and more.

Try it Now
Categories:
External APIs External APIs
Bots & AI
Bots & AI
Chat & Social
Chat & Social
Last Updated:
20160915 at 22:28:01
Author:
PubNub

Walkthrough

This block calls the SDL API's for language translation and amends the information into the stream.

To learn more about Diffbot API and getting your production keys, visit SDL Registration.

Users wishing to pay by credit card can subscribe to one of the publicly available packages; details of which can be found here: http://www.sdl.com/languagecloud/machine-translation/pricing.html.

If these packages do not meet your requirements or you wish to pay by another method then please contact us with your requirements by filling out this form: http://www.sdl.com/cxc/language/contact/.

Input

Input Channel: sdl-channel (configurable) If the message contains the "text", "to", and "from" fields, the block will perform a translation of the text.
{
    "text": "Hello",
    "from": "eng",
    "to": "fra"
}

Output

The translated text returned from SDL will be appended into the response for clients
{
    "text": "Hello",
    "from": "eng",
    "to": "fra",
    "translation": "Bonjour"
}