https://github.com/buren/i18n_compare
Compare translations from Google, Bing and Yandex
https://github.com/buren/i18n_compare
Last synced: 3 months ago
JSON representation
Compare translations from Google, Bing and Yandex
- Host: GitHub
- URL: https://github.com/buren/i18n_compare
- Owner: buren
- Created: 2016-10-15T11:18:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T09:17:46.000Z (over 3 years ago)
- Last Synced: 2025-01-20T05:17:07.559Z (4 months ago)
- Language: Ruby
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# I18n Compare
Compare translations from Google, Bing and Yandex.
* Ruby version: > 2
## Endpoints
There is currently just one endpoint that accepts either GET or POST.
For example translate `Hello everyone` from English to Spanish.
```
GET /translate?text=Hello%20everyone&from=en&to=es`
```__Example response__
```json
{
"google": {
"text": "Hola a todos",
"confidence": 1.0,
"tokens": [
"Hola a todos"
]
},
"bing": {
"text": "Hola a todos",
"confidence": 1.0,
"tokens": [
"Hola a todos"
]
},
"yandex": {
"text": "Hola a todos",
"confidence": 0.5,
"tokens": [
"Hola",
"todo el mundo"
]
}
}
```