You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.
2041
+
in: path
2042
+
required: true
2043
+
schema:
2044
+
type: string
2045
+
2046
+
requestBody:
2047
+
required: true
2048
+
content:
2049
+
application/json:
2050
+
schema:
2051
+
type: object
2052
+
required:
2053
+
- files
2054
+
properties:
2055
+
files:
2056
+
description: |
2057
+
List of files with their associated locales to download.
2058
+
At least one entry is required, each with at least one locale.
2059
+
The total number of file-locale combinations cannot exceed 500.
2060
+
type: array
2061
+
minItems: 1
2062
+
items:
2063
+
type: object
2064
+
required:
2065
+
- fileUri
2066
+
- localeIds
2067
+
properties:
2068
+
fileUri:
2069
+
type: string
2070
+
description: Smartling value that uniquely identifies a file.
2071
+
localeIds:
2072
+
type: array
2073
+
description: List of locales to download for the given file. Must contain at least one element.
2074
+
minItems: 1
2075
+
items:
2076
+
type: string
2077
+
retrievalType:
2078
+
description: |
2079
+
Determines the desired format for the download. Applies only to
2080
+
translated files.
2081
+
2082
+
| retrievalType | Description |
2083
+
|---------------|-------------|
2084
+
| pending | Smartling returns any translations (including non-published translations)|
2085
+
| published | Smartling returns only published/pre-published translations.|
2086
+
| pseudo | Smartling returns a modified version of the original text with certain characters transformed and the text expanded. For example, the uploaded string "This is a sample string", will return as "T~hís ~ís á s~ámpl~é str~íñg". Pseudo translations enable you to test how a longer string integrates into your application.|
2087
+
| contextMatchingInstrumented | Smartling returns a modified version of the original file with strings wrapped in a specific set of Unicode symbols that can later be recognized and matched by the Chrome Context Capture Extension.|
2088
+
type: string
2089
+
enum:
2090
+
- pending
2091
+
- published
2092
+
- pseudo
2093
+
- contextMatchingInstrumented
2094
+
includeOriginalStrings:
2095
+
description: |
2096
+
Specifies whether Smartling will return the original string or an
2097
+
empty string where no translation is available. This parameter is
2098
+
only supported for Android XML, gettext, Java properties, custom
2099
+
XML, and JSON files.
2100
+
2101
+
| Value | Description |
2102
+
|-------|-------------|
2103
+
| true | If there is no translation, Smartling returns the original string. |
2104
+
| false | If there is no translation, Smartling returns an empty string. |
2105
+
type: boolean
2106
+
fileNameMode:
2107
+
description: |
2108
+
Determines how files in the ZIP file will be named. If not set, the
2109
+
full original file path will be used as the filename.
2110
+
2111
+
| fileNameMode | Description |
2112
+
|--------------|-------------|
2113
+
| UNCHANGED | Full original file path is used |
2114
+
| TRIM_LEADING | Remove all except the last path segment. e.g. ```/en/strings/nav.properties``` becomes ```nav.properties```|
2115
+
| LOCALE_LAST | Adds a locale folder to the file path directly before the filename. e.g. ```/strings/nav.properties``` becomes ```/strings/en/nav.properties``` |
2116
+
type: string
2117
+
enum:
2118
+
- UNCHANGED
2119
+
- TRIM_LEADING
2120
+
- LOCALE_LAST
2121
+
localeMode:
2122
+
description: |
2123
+
Determines how locales will be handled in the downloaded zip
2124
+
2125
+
| localeMode | Description |
2126
+
|------------|-------------|
2127
+
| LOCALE_IN_PATH | Locale code is added to the end of the file path. e.g. ```/strings/es-ES/nav.properties```. |
2128
+
| LOCALE_IN_NAME | Locale code is added to the end of the file name e.g. ```/strings/nav_es-ES.properties```. |
2129
+
| LOCALE_IN_NAME_AND_PATH | Locale code is added to both the path and the filename. e.g. ```/strings/es-ES/nav_es-ES.properties```. |
2130
+
type: string
2131
+
enum:
2132
+
- LOCALE_IN_PATH
2133
+
- LOCALE_IN_NAME
2134
+
- LOCALE_IN_NAME_AND_PATH
2135
+
zipFileName:
2136
+
description: Name for the downloaded ZIP file. If unset, default is ```translations.zip```
2137
+
type: string
2138
+
fileFilter:
2139
+
description: |
2140
+
Specifies which files will be included in the response.
2141
+
2142
+
| Value | Description |
2143
+
|--------|-------------|
2144
+
| ALL_FILES | All requested files will be included in the response. |
2145
+
| PUBLISHED_FILES_ONLY | Only fully published files will be included in the response. |
2146
+
type: string
2147
+
enum:
2148
+
- ALL_FILES
2149
+
- PUBLISHED_FILES_ONLY
2150
+
2151
+
responses:
2152
+
200:
2153
+
description: OK
2154
+
content:
2155
+
'*/*':
2156
+
schema:
2157
+
type: string
2158
+
format: binary
2159
+
204:
2160
+
description: No content — returned when `fileFilter=PUBLISHED_FILES_ONLY` and none of the requested files are fully published.
0 commit comments