GET https://api.kertennet.com/live/translate
GET
参数名 | 类型 | 是否必填 | 描述 |
---|---|---|---|
text | string | 是 | 要翻译的文本内容 |
to | string | 是 | 目标语言代码(详见下方说明) |
语言 | 代码 |
---|---|
英文 | en |
日语 | ja |
韩语 | ko |
法语 | fr |
俄语 | ru |
中文 | zh |
{ "code": 200, "message": "success", "data": { "source": "我喜欢詹姆斯,今天打赢鹈鹕队了", "target": "I like James. I beat the Pelicans today" } }
参数名 | 类型 | 描述 |
---|---|---|
code | int | 状态码,200 表示请求成功 |
message | string | 返回消息,一般为 "success" |
data | object | 翻译结果数据 |
data.source | string | 原始文本 |
data.target | string | 翻译后的文本 |
{ "code": 500, "message": "invalid request", "data": null }
GET https://api.kertennet.com/live/translate?text=这是文字翻译&to=en
{ "code": 200, "message": "success", "data": { "source": "这是文字翻译", "target": "This is a text translation" } }
上一篇:四川润淼一禾网络科技有限公司
上一篇:北京世纪天宏科技有限公司