Skip to main content

Get text translation language pairs

Get the list of supported language pairs for text translation.

  • A language pair represents a combination of a source language code together with a target language code.
  • These codes follow the IETF BCP 47 language tag standard.
    For example, the code en-GB stands for British English and pt-PT for Portuguese from Portugal.
Info

See the language code schema for more information regarding the allowed format/syntax.


Example of a response to this endpoint:
[{"source": "en-GB", "target": "de-DE"}, {"source": "da", "target": "en-GB"}].

This response means that our MT API supports and allows translating from:

  • English - United Kingdom (en-GB) to German-Germany (de-DE)
  • Danish (da) to English - United Kingdom (en-GB)

However, it does not necessarily support the other way round!

Caution

When specifying the MT language pairs of your need, pay special attention to the direction (source-target) of the language pair codes.


Responses
200

Successful response

Schema OPTIONAL
object[]
source BCP-47

Possible values: 2 ≤ length ≤ 25

To identify languages, we use the RFC 4646 conventions. Example of language codes: da (Danish), pt-PT (Portuguese Portugal).

  • Currently, we don't support extensions or private tags.
  • Refer to the Standards guide for more details on language tags.
target BCP-47

Possible values: 2 ≤ length ≤ 25

To identify languages, we use the RFC 4646 conventions. Example of language codes: da (Danish), pt-PT (Portuguese Portugal).

  • Currently, we don't support extensions or private tags.
  • Refer to the Standards guide for more details on language tags.
401

The access token provided is missing, expired, revoked, malformed, or invalid for other reasons. The client MAY request a new access token and retry the protected resource request.

Schema OPTIONAL
detail Detail

A generic JSON value, typically a string describing the error.

403

The request requires higher privileges than provided by the access token. The request should not be retried.

Schema OPTIONAL
detail Detail

A generic JSON value, typically a string describing the error.

429

Too many requests in the time interval

Schema OPTIONAL
detail Detail

A generic JSON value, typically a string describing the error.

500

Internal server error

Schema OPTIONAL
detail Detail

A generic JSON value, typically a string describing the error.