API
Languages
The 34 target languages VibeQL supports, their codes, aliases and the endpoints that list them.
VibeQL translates into 34 target languages and from 30 source languages. Codes are not case-sensitive.
Language codes
| Language | Target code | Source code |
|---|---|---|
| Arabic | AR | AR |
| Bulgarian | BG | BG |
| Czech | CS | CS |
| Danish | DA | DA |
| German | DE | DE |
| Greek | EL | EL |
| English (British) | EN-GB | EN |
| English (American) | EN-US | EN |
| Spanish | ES | ES |
| Spanish (Latin American) | ES-419 | ES |
| Estonian | ET | ET |
| Finnish | FI | FI |
| French | FR | FR |
| Hungarian | HU | HU |
| Indonesian | ID | ID |
| Italian | IT | IT |
| Japanese | JA | JA |
| Korean | KO | KO |
| Lithuanian | LT | LT |
| Latvian | LV | LV |
| Norwegian (Bokmål) | NB | NB |
| Dutch | NL | NL |
| Polish | PL | PL |
| Portuguese (Brazilian) | PT-BR | PT |
| Portuguese (European) | PT-PT | PT |
| Romanian | RO | RO |
| Russian | RU | RU |
| Slovak | SK | SK |
| Slovenian | SL | SL |
| Swedish | SV | SV |
| Turkish | TR | TR |
| Ukrainian | UK | UK |
| Chinese (Simplified) | ZH-HANS | ZH |
| Chinese (Traditional) | ZH-HANT | ZH |
A source code is the language part only, for example PT or ZH. If you send a target code such as PT-BR as the source, the API uses its language part.
Aliases
Some short target codes map to one variant:
| You send | The API uses |
|---|---|
EN |
EN-US |
PT |
PT-PT |
ZH |
ZH-HANS |
The Google and Azure endpoints also accept these codes:
| You send | The API uses |
|---|---|
no |
NB |
zh-CN |
ZH-HANS |
zh-TW |
ZH-HANT |
List languages
All language endpoints need an API key.
DeepL v2
GET https://vibeql.com/v2/languages?type=source lists source languages. type=target lists target languages. source is the default.
curl "https://vibeql.com/v2/languages?type=target" \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY"
[
{ "language": "AR", "name": "Arabic", "supports_formality": false },
{ "language": "BG", "name": "Bulgarian", "supports_formality": false },
{ "language": "PT-BR", "name": "Brazilian Portuguese", "supports_formality": false }
]
supports_formality is always false. VibeQL has no formality setting.
DeepL v3
GET https://vibeql.com/v3/languages returns one list. Each entry says if the code works as a source, a target or both.
[
{ "lang": "de", "name": "German", "usable_as_source": true, "usable_as_target": true, "status": "stable", "features": {} },
{ "lang": "pt-BR", "name": "Brazilian Portuguese", "usable_as_source": false, "usable_as_target": true, "status": "stable", "features": {} }
]
Google Translate v2
GET https://vibeql.com/language/translate/v2/languages. Add target=en to get the language names too.
curl "https://vibeql.com/language/translate/v2/languages?key=$VIBEQL_API_KEY&target=en"
{ "data": { "languages": [{ "language": "ar", "name": "Arabic" }, { "language": "zh-TW", "name": "Chinese (Traditional)" }] } }
Azure Translator v3
GET https://vibeql.com/languages?api-version=3.0 returns the translation scope.
curl "https://vibeql.com/languages?api-version=3.0" \
-H "Ocp-Apim-Subscription-Key: $VIBEQL_API_KEY"
{ "translation": { "ar": { "name": "Arabic", "nativeName": "Arabic", "dir": "rtl" }, "pt-BR": { "name": "Brazilian Portuguese", "nativeName": "Brazilian Portuguese", "dir": "ltr" } } }
nativeName has the English name.