Skip to content
VibeQL

API

Languages

The 34 target languages VibeQL supports, their codes, aliases and the endpoints that list them.

Markdown

VibeQL translates into 34 target languages and from 30 source languages. Codes are not case-sensitive.

Language codes

LanguageTarget codeSource code
ArabicARAR
BulgarianBGBG
CzechCSCS
DanishDADA
GermanDEDE
GreekELEL
English (British)EN-GBEN
English (American)EN-USEN
SpanishESES
Spanish (Latin American)ES-419ES
EstonianETET
FinnishFIFI
FrenchFRFR
HungarianHUHU
IndonesianIDID
ItalianITIT
JapaneseJAJA
KoreanKOKO
LithuanianLTLT
LatvianLVLV
Norwegian (Bokmål)NBNB
DutchNLNL
PolishPLPL
Portuguese (Brazilian)PT-BRPT
Portuguese (European)PT-PTPT
RomanianRORO
RussianRURU
SlovakSKSK
SlovenianSLSL
SwedishSVSV
TurkishTRTR
UkrainianUKUK
Chinese (Simplified)ZH-HANSZH
Chinese (Traditional)ZH-HANTZH

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.