Sending Excel and ODS files for translation
Leave feedback
To translate Excel or OpenOffice ODS file, send a POST request to the https://api.groupdocs.cloud/v2.0/translation/spreadsheet GroupDocs.Translation Cloud REST API endpoint. To authorize the request, pass the access token in Authorization header (Bearer authentication).
The file and translation parameters are provided in JSON format in the request body.
Language codes into which the file should be translated.
url
String
n/a
Link to a file obtained while uploading it.
format
String
format
Extension of your file, shoud start with capital letter, e.g. Docx.
outputFormat
String
n/a
Extension of translated file, if it should be converted.
worksheets
List of integers
null
List of 1 based indexes of worksheets in Excel spreadsheet.
ranges
Dictionary
nulll
Dictionary of specific ranges in Excel spreadsheet to translate, where the key is the worksheet index and the value is either list of indexes of specific rows or specific columns or tuple of cells indexes.
savingMode
String
Files
If the translated file should be saved as file (Files), archive (Archive) or both (Both).
Return value
If successful, this method returns JSON with a unique identifier (value of the id property) of the translation request in the queue:
Otherwise, it returns a HTTP status code corresponding to the error.
What’s next
Translation will take a few seconds, depending on the size of the file, the volume of its textual content and the current GroupDocs.Translation Cloud load. See the article Fetching translations for information on how to get translations from the server.