Retrieves the list of all languages defined in the platform with code, title and ancillary properties.
URL
(GET) /api/settings/languages
(POST) /api/settings/languages
PARAMETERS
The method has no parameters.
Use the POST variant for auto-completion and pagination features.
RESULTS
The result is a JSON array with one element per language:
loc | Language code such as "en-GB", "es"... | string |
name | Name of language in English or the interface language selected by the current user. | string |
locb | Language part of the code. If "loc" is "en-GB" then "locb" is "en". | string |
rtl | Boolean. True if language is written right to left. | bool |
wcchar | Boolean. True if word counting is character based: Japanese, Chinese, ... | bool |
...
EXAMPLES
The following example is for a manager user accessing a job which is proposed to him/her. As a manager, the user has management level actions as well.
Code Block |
---|
{ [ "Abkhazian": { "loc": "ab", "name": "Abkhazian", "locb": "ab", "rtl": false, "wcchar": false }, "Afrikaans": { "loc": "af", "name": "Afrikaans", "locb": "af", "rtl": false, "wcchar": false }, "Afrikaans (Namibia)": { "loc": "af-NA", "name": "Afrikaans (Namibia)", "locb": "af", "rtl": false, "wcchar": false }, "Afrikaans (South Africa)": { "loc": "af-ZA", "name": "Afrikaans (South Africa)", "locb": "af", "rtl": false, "wcchar": false }, "Akan": { "loc": "ak", "name": "Akan", "locb": "ak", "rtl": false, "wcchar": false }, "Akan (Fante)": { "loc": "ak-Fant", "name": "Akan (Fante)", "locb": "ak", "rtl": false, "wcchar": false }, "Akan (Fante, Ghana)": { "loc": "ak-Fant-GH", "name": "Akan (Fante, Ghana)", "locb": "ak", "rtl": false, "wcchar": false }, "Albanian": { "loc": "sq", "name": "Albanian", "locb": "sq", "rtl": false, "wcchar": false }, "Albanian (Albania)": { "loc": "sq-AL", "name": "Albanian (Albania)", "locb": "sq", "rtl": false, "wcchar": false }, "Albanian (Former Yugoslav Republic of Macedonia)": { "loc": "sq-MK", "name": "Albanian (Former Yugoslav Republic of Macedonia)", "locb": "sq", "rtl": false, "wcchar": false } } |
...
] |