Skip to main content

Translation Callback Information (TranslatorResult)

Data Structure

INTLTranslatorResult: Inherits from INTLBaseResult, and contains basic information

ParametersTypeExplanation
translatorRespStringProcessing results returned by the translation service, which need to be handled independently by the game side. See translatorResp for details

Code Example:

{
"debugInfo":null,
"message":"Success",
"result":[
{
"id":"xxxx",
"output":"xxx",
"text":"xxx"
}
],
"retCode":"0"
}

translatorResp

retCodemessageExplanation
0SuccessSuccess
1001ParamsErrorParameter Error
1002ServiceInternalErrorInternal Service Error
1003PermissionErrorPermission error, the entered appId may not exist or the token is invalid
1007rate limit reachedDaily PV or QPM exceeded limit