Skip to main content

Translate

AndroidiOS
If you were looking for the method for use with Unity, see Translate for Unity SDK.

Translate, see FINTLTranslatorLang for a list of supported languages.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void Translate(FINTLTranslatorReq req_info);

Input parameters

ParameterTypeDescription
req_infoFINTLTranslatorReqTranslate 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);