Translate
Translate, see FINTLTranslatorLang for a list of supported languages.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void Translate(FINTLTranslatorReq req_info);
Input parameters
Parameter | Type | Description |
---|---|---|
req_info | FINTLTranslatorReq | Translate request info, see TranslatorReq for more information |
Observers
The callback processing interface is TranslatorResultObserver. The callback data structure is TranslatorResult.
The callback methodID is kMethodIDTranslatorTranslate
.
Code sample
FINTLTranslatorReq req_info;
FINTLTranslatorLang translate_lang;
req_info.targetLang = translate_lang.en;
req_info.translateTexts = TEXT("[\"xxx\", \"xxx\"]");
// For translate request, need login first.
UINTLSDKAPI::Translate(req_info);