Translate Files (/v1/translate/file)
Use this endpoint to translate files from one locale into another.
| POST https://agw.golinguist.com/linguistnow/resources/v1/translate/file | |||
| Request Headers | |||
| Key | Required | Value | |
| x-api-key | yes | {{your_api_key}} (See Managing your API Key.) | |
| Content-Type | yes | multipart/form-data | |
| Accept | yes | application/octet-stream | |
| Request Body (Format: multipart/form-data) | |||
| Key | Type | Required | Description |
| file | file | yes | File to translate. (See File Translation | Supported File Types.) |
| sourceLanguage | text | no |
Locale code of the language to translate from. Language IO recommends providing the sourceLanguage whenever possible. It is detected from the file content if not specified in the request. |
| targetLanguage | text | yes | Locale code of the language to translate to |
Note: The target language code will be appended to the translated file name.
For example, if "invoice.pdf" is translated into French, the translated file name is "invoice_fr-fr.pdf".
For example, if "invoice.pdf" is translated into French, the translated file name is "invoice_fr-fr.pdf".