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