Export Project Language
Exports project language.
Request type: POST
API Endpoint
https://api.translized.com/project/export
Parameters
Param | Type | Required | Description |
---|---|---|---|
projectId | String | True | Id of your project |
exportFormat | String | True | Format of file for export |
languageCode | String | True | Code of language to 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", "languageCode":"en"}" \
https://api.translized.com/project/export
fetch('https://api.translized.com/project/export', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
body: JSON.stringify({
projectId: 'A3KJtLw4mt',
exportFormat: 'json',
languageCode: 'en',
}),
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error(error));
const response = await axios.post('https://api.translized.com/project/export', {
projectId: 'A3KJtLw4mt',
exportFormat: 'json',
languageCode: 'en',
});
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.
- Supported exportFormat values can be found in our File Formats section.
Example response
{
"result": {
"fileURL": "https://api.translized.com/TDqgTeyz43Zg9181cdq9kEExL9dzJwTWXD8WjlOK/dad04a1a3910b43d54260b02f4e229c3_exportFile.json"
}
}