{
"from": "auto", // 源语言
"to": "zh-CHS", // 目标语言
"text": [ // 翻译内容
"Hello",
"world"
],
"platform": "Google" // 使用那个平台翻译不传入自动选择
}curl --location '/api/translate?key=6tRiPmeoqYz3yOm15xN259zsTZpn6s6t6EMNtRD1nHrwfmm4ffCcY8slalqyPMwy' \
--header 'Content-Type: application/json' \
--data '{
"from": "auto", // 源语言
"to": "zh-CHS", // 目标语言
"text": [ // 翻译内容
"Hello",
"world"
],
"platform": "Google" // 使用那个平台翻译不传入自动选择
}'{
"originalText": [
"Hello",
"world"
],
"originalTextLen": 10,
"platform": "Google",
"to": "zh-CHS",
"translate": [
{
"text": "你好",
"fromLang": "en"
},
{
"text": "世界",
"fromLang": "en"
}
]
}