projects/{pid}/locales

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: 

v

The language code

string

t

The language name

string

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:

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







Copyright Wordbee - Buzzin' Outside the Box since 2008