Translate file extraction results
Languages use ISO 639-1 codes; Chinese is region-qualified as zh-CN or zh-TW.
Omitting source_language or sending an empty string enables automatic source-language detection.
A concrete source language must differ from target_language.
Calling this endpoint translates the task and enables translation in the frontend task detail view.
A concurrent request returns a “task is being translated” error.
Common business error codes:
1005025065: task recognition failed and cannot be translated1005025066: task recognition has not completed1005025067: task translation is already in progress1005025068: source and target languages are the same1005025069: target language is empty or is not a concrete language code
Body
ID of a task that completed recognition. Send Snowflake IDs as strings; do not convert them to JavaScript Number.
"1978297791713619968"
Required target language as a concrete ISO 639-1 code.
zh-CN, zh-TW, ja, ko, en, fr, pt, de, it, es, ru, th, vi, ms, id, hi, bn, ar, pl "zh-CN"
Source language as an ISO 639-1 code. Omit it or send an empty string to enable automatic detection.
, zh-CN, zh-TW, ja, ko, en, fr, pt, de, it, es, ru, th, vi, ms, id, hi, bn, ar, pl ""

