Skip to main content

TranslatorResult

Data Structure

INTLTranslatorResult: Inherits from INTLBaseResult, includes basic information.

ParameterTypeDescription
translatorRespstringResult of translation request, to be processed by the game, see translatorResp for more information

Code sample:

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

translatorResp

retCodemessageDescription
0SuccessSuccess
1001ParamsErrorParameter error
1002ServiceInternalErrorInternal error in the server
1003PermissionErrorPermission error, appId may not exists or token invalid
1007rate limit reachedDaily PV or QPM limit exceeded