Supported Languages

Get supported languages list with Crowdin codes mapped to locale name and standardized codes.

Request

GET https://api.crowdin.com/api/supported-languages

Parameters

Name Value Description
xml optional string May not contain value. Defines that response should be in XML format. Default.
json optional string May not contain value. Defines that response should be in JSON format.
jsonp optional string Callback function name. Defines that response should be in JSONP format.

Response

If successful, this method returns a XML structure, as it is shown below.
<?xml version="1.0" encoding="ISO-8859-1"?>
<languages>
  <language>
    <name>Romanian</name>
    <crowdin_code>ro</crowdin_code>
    <iso_639_1>ro</iso_639_1>
    <iso_639_3>ron</iso_639_3>
    <locale>ro-RO</locale>
  </language>
  <language>
    <name>French</name>
    <crowdin_code>fr</crowdin_code>
    <iso_639_1>fr</iso_639_1>
    <iso_639_3>fra</iso_639_3>
    <locale>fr-FR</locale>
  </language>
  <language>
    <name>Spanish</name>
    <crowdin_code>es-ES</crowdin_code>
    <iso_639_1>es</iso_639_1>
    <iso_639_3>spa</iso_639_3>
    <locale>es-ES</locale>
  </language>
  <language>
    <name>Afrikaans</name>
    <crowdin_code>af</crowdin_code>
    <iso_639_1>af</iso_639_1>
    <iso_639_3>afr</iso_639_3>
    <locale>af-ZA</locale>
  </language>
  <!-- other languages -->
</languages>
Unsuccessful response sample:
<?xml version="1.0" encoding="ISO-8859-1"?>
<error>
  <code>2</code>
  <message>Unknown API action</message>
</error>

Examples

curl https://api.crowdin.com/api/supported-languages
<?php
$request_url = 'https://api.crowdin.com/api/supported-languages';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec($ch);
curl_close($ch);

print_r($result);