The Bering API supports text translations using the following languages:
Language
API Argument
English
en
Korean
ko
Japanese
ja
Chinese (Simplified)
zh
Chinese (Traditional)
zh-hant
French
fr
German
de
Spanish
es
Indonesian
id
Arabic
ar
The table below shows the supported translation language pairs:
Translate From
Translate To
ko, jp, zh, zh-hant, fr, de, es, id
jp
The total request body size for text translation requests must not exceed 1MB.
We recommend splitting up your text if you want to translate in excess of this limit.
Host: https://api.beringlab.com
POST Endpoint: /v1/text-translate
source_language (required)
source_language
string (enum)
target_language (required)
target_language
source_content (required)
source_content
Text to be translated. Defaults to interpreting argument as plain text. For XML, set the kind parameter to ‘xml_docx’.
kind
Type: string (UTF-8 encoded)
string
domain (required)
domain
subscription_id (required)
subscription_id
Found on the Settings page under ‘API plan Subscription ID’. See Access and Authentication for more details.
api_key (required)
api_key
Your API Key generated in Access and Authentication.
kind (optional)
Used when passing XML to the source_content parameter.
glossary_id (optional)
Used when specifying a glossary to apply to the translation
job_id
ID used to get the translated text.
status_code
Status of the API request
Type: integer
integer
POST Endpoint: /v1/glossaries/{glossary-id}
ID of the glossary. It can be found using GET method for glossaries listed below.
name
Name of the glossary
owner_id
Glossary owner’s ID which is the same as subscription_id.
Type: string
owner_type
Glossary owner’s account type. Either corporate or individual
corporate
individual
mappings
Glossary entries shown as a Hashmap
Type: Hashmap
POST Endpoint: /v1/glossaries
glossary_name (required)
glossary_name
Name of glossary
mappings (required)
PUT Endpoint: /v1/glossaries/{glossary-id}
DELETE Endpoint: /v1/glossaries/{glossary-id}
GET Endpoint: /v1/glossaries?subscription_id={subscription_id}&api_key={api_key}
ID of the glossary.
POST Endpoint: /v1/text-translate/status/{job_id}
text
The translated text.