mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* feat: add translation * feat: resurface translation by Google Translation * feat: renamed the service as `translate` to make more readable * fix: renamed response and request name to match rpc name * chore: delete useless blank line * Update publicapi.json * Update publicapi.json * Update README.md Co-authored-by: Asim Aslam <asim@aslam.me>
34 lines
629 B
JSON
34 lines
629 B
JSON
{
|
|
"text": [
|
|
{
|
|
"title": "Translate String",
|
|
"run_check": false,
|
|
"description": "Google Basic Edition Translation",
|
|
"request": {
|
|
"contents": [
|
|
"pen",
|
|
"pencil"
|
|
],
|
|
"model": "nmt",
|
|
"format": "text",
|
|
"source": "en",
|
|
"target": "zh"
|
|
},
|
|
"response": {
|
|
"translations": [
|
|
{
|
|
"text": "钢笔",
|
|
"source": "und",
|
|
"model": "nmt"
|
|
},
|
|
{
|
|
"text": "铅笔",
|
|
"source": "und",
|
|
"model": "nmt"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|