How to delete a target language that was added to a library.
Endpoint
https://api.platform.easytranslate.com/strings-library/api/v1/teams/:team-name/libraries/:library-id/languages/:language_code
In order to delete a target language from your library, you need to send a DELETE request. Please note that deleting language added to the Library will result in the deletion of the translations associated with that language.
You need to use your authorisation Bearer token to be able to send the request. Simply add token as an attribute to the authorisation section of your request and your access token as its value.
Then, you need to add the following variables' values to your endpoint path:
-
- team_name:{{TEAM_NAME}}
Instead of , you need to provide the team_name of your team. It can be retrieved from the api/v1/user endpoint.
- team_name:{{TEAM_NAME}}
-
-
library-id: {{LIBRARY_ID}}Instead of {{LIBRARY_ID}}, you need to provide the library_id of the library.
-
language_code: {{LANGUAGE_CODE}}Instead of {{LANGUAGE_CODE}}, you need to provide the language code of the target language you wish to delete from your library. The following table regroups all the language code possible:
-
|
Language |
Code |
| Afar | aa |
| Afrikaans | af |
| Albanian | sq |
| Amharic | am |
| Arabic | ar |
| Arabic (Egypt) | ar_EG |
| Arabic (Morocco) | ar_MA |
| Arabic (Syria) | ar_SY |
| Arabic (Sudan) | ar_SD |
| Arabic (Saudi Arabia) | ar_SA |
| Armenian | hy |
| Azerbaijani | az |
| Bambara | bm |
| Basque | eu |
| Belarusian | be |
| Bengali | bn |
| Blin (Bilin) | byn |
| Bosnian | bs |
| Bulgarian | bg |
| Burmese | my |
| Catalan | ca |
| Chechen | ce |
| Chinese (Simplified) | zh_CN |
| Chinese (Traditional) | zh_HK |
| Croatian | hr |
| Czech | cs |
| Danish | da |
| Dari | prs |
| Dhivehi | dv_MV |
| Dutch (Belgium) | nl_BE |
| Dutch (Standard) | nl_NL |
| Dzongkha | dz |
| English (Australia) | en_AU |
| English (India) | en_IN |
| English (United Kingdom) | en_GB |
| English (United States) | en_US |
| English (South Africa) | en_ZA |
| Esperanto | eo |
| Estonian | et |
| Faeroese | fo |
| Farsi | fa |
| Filipino | fil |
| Finnish | fi |
| French (Standard) | fr_FR |
| French (Belgium) | fr_BE |
| French (Canada) | fr_CA |
| French (Switzerland) | fr_CH |
| Frisian | fy |
| Fula | ff |
| Galician | gl |
| Georgian | ka |
| German | de |
| Greek | el |
| Greenlandic | kl |
| Gujarati | gu |
| Hausa | ha |
| Hebrew | he |
| Hindi | hi |
| Hungarian | hu |
| Haitian Creole | ht |
| Icelandic | is |
| Igbo | ig |
| Indonesian | id |
| Inuktitut | iu |
| Italian (Standard) | it_IT |
| Italian (Switzerland) | it_CH |
| Irish | ga |
| Japanese | ja |
| Javanese | jv |
| Kannada | kn |
| Kazakh | kk |
| Khmer | km |
| Kinyarwanda | rw |
| Kirundi | rn |
| Korean | ko |
| Krio | kri |
| Kurmanji (Syria) | kmr_SY |
| Kurmanji (Turkey) | kmr_TR |
| Kyrgyz | kz |
| Lao | lo |
| Latin | la |
| Latvian | lv |
| Lingala | ln |
| Lithuanian | lt |
| Luxembourgish | lb |
| Macedonian | mk |
| Malagasy | mg |
| Malay | ms |
| Malayalam | ml |
| Maltese | mt |
| Mandingo (Mandinka) | man |
| Marathi | mr |
| Moldovian | ro_MD |
| Mongolian | mn_MN |
| Nepali | ne_NP |
| Norwegian (Bokmål) | nb_NO |
| Norwegian (Nynorsk) | nn_NO |
| Oromo | om |
| Pashto | ps |
| Persian (Farsi) | fa_IR |
| Polish | pl |
| Portuguese (Brazil) | pt_BR |
| Portuguese (European) | pt_PT |
| Punjabi | pa |
| Romanian | ro_RO |
| Romansh (Switzerland) | rm_CH |
| Romani | rom |
| Russian | ru |
| Sami | se_FI |
| Serbian (Cyrillic, Serbia) | sr_cyrl_RS |
| Serbian (Latin, Serbia) | sr_latn_RS |
| Serbian (Cyrillic, Montenegro) | sr_cyrl_ME |
| Serbian (Latin, Montenegro) | sr_latn_ME |
| Sinhalese | si_LK |
| Slovak | sk |
| Slovenian | sl |
| Somali | so |
| Sorani | ckb |
| Sotho | st |
| Spanish (European) | es_ES |
| Spanish (Latin America) | es_419 |
| Spanish (Mexico) | es_MX |
| Swahili | sw |
| Swedish | sv |
| Tagalog | tl |
| Tamil | ta |
| Telugu | te |
| Tajik | tg |
| Thai | th |
| Tibetan | bo |
| Tigre | tig |
| Tigrinya | ti |
| Traditional Chinese (Taiwan) | zh_TW |
| Turkish | tr |
| Turkmen | tk |
| Twi | tw |
| Ukrainian | uk |
| Urdu | ur |
| Uyghur | ug |
| Uzbek | uz |
| Vietnamese | vi |
| Welsh | cy |
| Wolof | wo |
| Xhosa | xh |
| Yiddish | yi |
| Yoruba | yo |
| Zulu | zu |
Request example
curl --location -g --request DELETE 'https://api.platform.easytranslate.com/strings-library/api/v1/teams/{{TEAM_NAME}}/libraries/{{LIBRARY_ID}}/languages/{{LANGUAGE_CODE}}'