http://translate.google.cn/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=zh_TW&q=calculatejson
{
"sentences": [
{
"trans": "計算",
"orig": "calculate",
"backend": 1
}
],
"src": "en",
"confidence": 0.9609375,
"ld_result": {
"srclangs": [
"en"
],
"srclangs_confidences": [
0.9609375
],
"extended_srclangs": [
"en"
]
}
}
http://api.microsofttranslator.com/v2/Http.svc/Translate?appId=AFC76A66CF4F434ED080D245C30CF1E71C22959C&from=&to=en&text=考勤計算api
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Attendance calculation</string>
不添加from參數或者from爲空都自動檢測語言app
http://fanyi.baidu.com/transapi?from=auto&to=cht&query=Calculationdom
{
"from": "en",
"to": "cht",
"domain": "all",
"type": 2,
"status": 0,
"data": [
{
"dst": "計算",
"prefixWrap": 0,
"src": "Calculation",
"relation": [],
"result": [
[
0,
"計算",
[
"0|6"
],
[],
[
"0|6"
],
[
"0|6"
]
]
]
}
]
}
v2transapi已經失效ide
http://fanyi.youdao.com/translate?&doctype=json&type=AUTO&i=計算google
{
"type": "ZH_CN2EN",
"errorCode": 0,
"elapsedTime": 1,
"translateResult": [
[
{
"src": "計算",
"tgt": "To calculate"
}
]
]
}
type的類型有:spa
ZH_CN2EN 中文 » 英語 ZH_CN2JA 中文 » 日語 ZH_CN2KR 中文 » 韓語 ZH_CN2FR 中文 » 法語 ZH_CN2RU 中文 » 俄語 ZH_CN2SP 中文 » 西語 EN2ZH_CN 英語 » 中文 JA2ZH_CN 日語 » 中文 KR2ZH_CN 韓語 » 中文 FR2ZH_CN 法語 » 中文 RU2ZH_CN 俄語 » 中文 SP2ZH_CN 西語 » 中文