Get supported languages list with Crowdin codes mapped to locale name and standardized codes.
If successful, this method returns a XML structure, as shown below.
<?xml version="1.0" encoding="ISO-8859-1"?>
Romanian
ro
ro
ron
ro-RO
French
fr
fr
fra
fr-FR
Spanish
es-ES
es
spa
es-ES
Afrikaans
af
af
afr
af-ZA
Sample unsuccessful response:
<?xml version="1.0" encoding="ISO-8859-1"?>
2
Unknown API action
curl http://api.crowdin.net/api/supported-languages
<?php
$request_url = 'http://api.crowdin.net/api/supported-languages';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$result = curl_exec($ch);
curl_close($ch);
print_r($result);