Get Translations (/v1/file/get-translations)
Temporarily uploads a file, then returns a translated version for requested locales.
This call can be used instead of a standard upload/download if you keep different versions of a file in multiple branches or are triggering rebuilds, and don’t want your files in Smartling to be overwritten by out-of-date versions of a file.
To use the call, you upload a file and identify the Smartling URI where the main version of that file is saved. Smartling will match strings shared between the uploaded file and the main file and return any available translations.
The API Key for your account. Available in the Smartling dashboard at Project Settings>API.
The unique ID for your project. Available in the Smartling dashboard at Project Settings>API.
The file contents to upload. This should be submitted via a multipart/form-data POST request.
Identifies an existing file in Smartling. Smartling will create namespace, directives and instructions for the temporary file based on this file.
Content-Disposition: attachment; filename="fname.ext"
translated file contents