Export translations
Changed onTemporarily 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.
Request
- Base URLhttps://api.smartling.com
- AuthHTTP bearer
Path parameters
Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.
A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.
Locale identifier. Either a 2-letter language code (en) or a language-region pair (en-US). The language part is always lowercase; the region part is always uppercase.
Identifier for a locale.
Request body multipart/form-data
Example request
{
"fileUri": "/content/en/home.json"
}Response
OK
Changes
- breaking
added the pattern
^[a-z0-9]{9}$to thepathrequest parameterprojectId - breaking
added the pattern
^[a-z]{2}(-[A-Z]{2})?$to thepathrequest parameterlocaleId - breaking
added to the
request propertyallOflist - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - info
the
request property type was generalized fromstringto no type
- breaking
- breaking
added the new required request property
- breaking