Delete language
Deletes language from the project.
Request type: POST
API Endpoint
https://api.translized.com/language/delete
Parameters
Param | Type | Required | Description |
---|---|---|---|
projectId | String | True | Id of your project |
languageCode | String | True | Code of language to delete |
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", "languageCode":"az"}" \
https://api.translized.com/language/delete
fetch('https://api.translized.com/language/delete', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
body: JSON.stringify({
projectId: 'A3KJtLw4mt',
languageCode: 'az',
}),
})
.then((res) => res.json())
.then((data) => console.log(data))
.catch((err) => console.log(err));
const response = await axios.post(
'https://api.translized.com/language/delete',
{
projectId: 'A3KJtLw4mt',
languageCode: 'az',
}
);
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": {
"success": true
}
}