Language Info
The Language endpoint provides info regarding a specific or all languages supported by Transifex.
Getting information for a specific language
URL: /language/<language_code>
/
GET
Return the fields name
, code
, nplurals
, rtl
, and pluralequation
for the language associated with the specified code in JSON format.
Example:
$ curl -i -L --user api:<token> -X GET https://www.transifex.com/api/2/language/pt_BR/
HTTP/1.1 200 OK
Server: nginx
Vary: Accept-Encoding
Vary: Authorization, Host, Accept-Language, Cookie
Cache-Control: max-age=3600
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Mar 2018 17:42:10 GMT
Expires: Mon, 19 Mar 2018 18:42:10 GMT
Transfer-Encoding: chunked
Content-Language: en
X-Content-Type-Options: nosniff
Connection: keep-alive
Set-Cookie: X-Mapping-fjhppofk=300CA58EE011BC6BC0E393EE4F2B31F6; path=/
Last-Modified: Mon, 19 Mar 2018 17:42:10 GMT
X-Frame-Options: SAMEORIGIN
{
"rtl": false,
"pluralequation": "language.pluralequation",
"code": "pt_BR",
"name": "Portuguese (Brazil)",
"nplurals": 2
}
Getting information for all the supported languages
URL: /languages/
GET
Return the fields name
, code
, nplurals
, rtl
, and pluralequation
for a list of all languages supported by Transifex in JSON format.
$ curl -i -L --user api:<token> -X GET https://www.transifex.com/api/2/languages/
HTTP/1.1 200 OK
Server: nginx
Vary: Accept-Encoding
Vary: Authorization, Host, Accept-Language, Cookie
Cache-Control: max-age=3600
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Mar 2018 17:43:28 GMT
Expires: Mon, 19 Mar 2018 18:43:28 GMT
Transfer-Encoding: chunked
Content-Language: en
X-Content-Type-Options: nosniff
Connection: keep-alive
Set-Cookie: X-Mapping-fjhppofk=371E5B112B2394FA3017E8BE0809059C; path=/
Last-Modified: Mon, 19 Mar 2018 17:43:28 GMT
X-Frame-Options: SAMEORIGIN
[
{
"rtl": false,
"pluralequation": "language.pluralequation",
"code": "ab",
"name": "Abkhaz",
"nplurals": 2
},
{
"rtl": false,
"pluralequation": "language.pluralequation",
"code": "ach",
"name": "Acoli",
"nplurals": 2
}
...
]