List all translations
Changed onReturns translated strings from Smartling. You can get translations by specifying a file you want strings for, or you can specify individual strings by hashcode.
If you do not specify at least one of these parameters (hashcodes or fileUri) no results will be returned.
Note: If you use this call to get strings that were not created via the Strings API, you may see differences in the response.
Only authorized and active strings will be returned. Excluded, unauthorized, and inactive strings will not be returned.
You may see a value for parsedStringText but a null value for stringText. The stringText records the raw input received by the Strings API, and therefore will only appear for strings uploaded via the Strings API. If you are getting a GDN string, the original placeholder values you used will not be returned as these are not saved by Smartling. GDN strings will have placeholders in the format {0}, {1}, etc.
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.
Query parameters
Hashcodes for each string you want to get translations for.
[ "d41d8cd98f00b204e9800998ecf8427e" ]
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.
Smartling ID for the language you want to get translations for.
Sets the types of translations you want returned. published will only return translations that have completed their workflows and been published. pending will return any saved translations.
URI path of a source file within a Smartling project.
URI of a file you want to get translations for.
Pagination setting. By default, responses will be limited to 500 per request. Maximum allowed value is 10,000.
Number of items to skip. Default is 0.
When true (default), placeholder tokens are resolved to display values. When false, internal placeholder format ({0}, {1}, etc.) is preserved.
Response
OK
Example response
{
"response": {
"data": {
"items": [
{
"hashcode": "d41d8cd98f00b204e9800998ecf8427e",
"keys": [
{
"fileUri": "/content/en/home.json"
}
],
"targetLocaleId": "fr-FR",
"workflowStepUid": "7564fc097a85"
}
]
}
}
}Changes
- info
endpoint added
- info