GeneXus SDK for SAP Leonardo: Translation

Official Content

The Translation service (API) allows you to translate multiple translation units from a source language into multiple target languages.

How to use the Translation API

To use the Translation API you have to use the Translation Procedure

GeneXusSAPLeonardo.Translation.Translation(&body, &TranslationResult, &Message, &IsSuccess)

Where:

  • &body: is a Structured Data Type(SDT) that contains:
    • The source language of the text to be translated
    • A collection of target languages.
    • A collection of texts to be translated
  • &TranslationResult: is a SDT that contains:
    • A collection of translated texts.
  • &Message: is a Message that contains information about the request.
  • &IsSuccess: is a Boolean that is true if no errors were encountered.

 

&body SDT composition

image_2018122694413_1_png

TextTranslationRequest SDT composition

image_2018122694456_1_png

&TranslationResult SDT composition

image_2018122694559_1_png

TextTranslationResult SDT composition

image_2018122694642_1_png

TextTranslationTranslation SDT composition

image_2018122694737_1_png

 

Read more about the Translation API.

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.