### POST /b1/api/v3/translate Source: https://docs.lingvanex.com/translate Translates text or HTML strings and arrays, with support for language auto-detection and transliteration. ```APIDOC ## POST https://api-b2b.backenster.com/b1/api/v3/translate ### Description Translates text and HTML single string or arrays. Also it performs transliteration, language auto detection. ### Method POST ### Endpoint https://api-b2b.backenster.com/b1/api/v3/translate ### Parameters #### Request Body - **from** (string) - Optional - The language code in the format "language code_code of the country" from which the text is translated. Default: auto-detect. - **to** (string) - Required - Language code in the format "language code_code of the country" to which the text is translated. - **data** (string or array) - Required - Data for translation. - **translateMode** (string) - Optional - Describe the input text format. Possible value is "html". - **enableTransliteration** (boolean) - Optional - If true response includes sourceTransliteration and targetTransliteration fields. Default: false. - **platform** (string) - Required - Default: api. ### Request Example { "platform": "api", "from": "en_GB", "to": "de_DE", "data": "Hello, world!", "enableTransliteration": false } ### Response #### Success Response (200) - **result** (string) - Successful translation #### Response Example { "err": null, "result": "Hallo, Welt!" } ``` -------------------------------- ### Translate text using cURL Source: https://docs.lingvanex.com/translate Perform a translation request by sending a JSON payload to the API endpoint with the required authorization header. ```shell curl --request POST \ --url https://api-b2b.backenster.com/b1/api/v3/translate \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "platform": "api", "from": "en_GB", "to": "de_DE", "data": "Hello, world!", "enableTransliteration": false }' ``` -------------------------------- ### API translation response Source: https://docs.lingvanex.com/translate The JSON response returned by the API upon a successful translation request. ```json { "err": null, "result": "Hallo, Welt!" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.