Skip to main content

projects/{pid}/locales

A simple method to get the list of all project languages.

URL

(GET) /api/projects/{pid}/locales

PARAMETERS

The URL parameters are:

pid

The project id

int, Required


RESULTS

Returns a JSON array of language codes and names. Properties of each element are: 

vThe language codestring
tThe language namestring
src

Indicates if the language is a valid source language.

With Codyt projects any language can be source language.

With Standard projects there is one specific source language.

bool


EXAMPLES

See this example:

CODE
[
    {
        "v": "zh",
        "t": "Chinese",
        "src": true
    },
    {
        "v": "en",
        "t": "English",
        "src": true
    },
    {
        "v": "de",
        "t": "German",
        "src": true
    }
]




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.