Skip to main content

Translation (TranslatorReq)

Data Structure​

INTLTranslatorReq: Translation Request

ParametersTypeExplanationNote
SrcLangstringOriginal Language
Default: auto
Required
TargetLangstringTarget Language
Default: empty
Required
TranslateTextsstringTranslation content, format is [\"xxx\", \"xxx\"], up to 5 sets
Default: empty
Required
TopicstringBackground information of translation text
Default: empty
Optional
PastConversationstringHistorical conversation content
Default: empty
Optional
RemarkstringOther supplementary information
Default: empty
Optional
NoCacheboolWhether to disable caching
true: no cache needed, false: cache needed
Default: false
Optional
GameCodestringGameCode that is assigned from AI translation service by Admin
Default: empty
Optional
ExtInfostringExtension JSON field, note that it is a JSON string, not an object
Default: empty
Optional
TraceIdstringUnique request ID for tracking, used for request-response correlation
Default: empty
Optional