Loading TOC...


cdict.getLanguages() as Sequence


Return the ISO language codes for all licensed languages.

Required Privileges

This function requires the custom-dictionary-user role or the following privileges:


Usage Notes

This function returns the 2-letter ISO language codes for all languages licensed for your MarkLogic installation. A list of codes and their associated languages is at http://www.loc.gov/standards/iso639-2/php/code_list.php. Note that MarkLogic only uses the 2-letter ISO 639-1 codes, including zh's zh_Hant variant.

See Also


'use strict';
const cdict = require('/MarkLogic/custom-dictionary');


// Returns a list of language codes such as the following:
// ("en", "ja", "zh", "zh_Hant")

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.