Export All Project Languages
Exports all project languages.
Request type: POST
API Endpoint
https://api.translized.com/project/exportAll
Parameters
Param | Type | Required | Description |
---|---|---|---|
projectId | String | True | Id of your project |
exportFormat | String | True | Format of file for export |
replaceEmptyWithPrimaryTranslations | Boolean | False | Replace empty translations with primary translations |
replaceEmptyWithPseudolocalization | Object | False | Replace empty translations with pseudolocalized primary translations. 'increasePercentage' parameter in Object sets the length of pseudolocalized string (example: "replaceEmptyWithPseudolocalization":{"increasePercentage": 83} ) |
transformPlaceholdersiOSAndroid | Boolean | False | Replace all placeholders with native ones. Use this parameter when you have one Translized project for both iOS and android. |
Example requests
- cURL
- Javascript Fetch
- Javascript Axios
curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
-d "{"projectId":"A3KJtLw4mt", "exportFormat":"json"}" \
https://api.translized.com/project/exportAll
fetch('https://api.translized.com/project/exportAll', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
body: JSON.stringify({
projectId: 'A3KJtLw4mt',
exportFormat: 'json',
}),
})
.then((response) => response.json())
.then((data) => console.log(data))
.error((error) => console.log(error));
const response = await axios.post(
'https://api.translized.com/project/exportAll',
{
projectId: 'A3KJtLw4mt',
exportFormat: 'json',
}
);
const data = response.result;
info
- projectId can be found inside your project's settings. (Translized App -> Your Project -> Settings )
- List of all supported languages with languageCode values can be found in our Supported Languages section.
Example response
{
"result": [
{
"en": {
"fileURL": "https://api.translized.com/TDqgTeyz43Zg9181cdq9kEExL9dzJwTWXD8WjlOK/101c749fcdba1461e016aea28d048fb7_exportFile.json"
}
},
{
"sr": {
"fileURL": "https://api.translized.com/TDqgTeyz43Zg9181cdq9kEExL9dzJwTWXD8WjlOK/d86c7323698850ee2e4cd6a389e9d310_exportFile.json"
}
}
]
}