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.
'use strict';
const cdict = require('/MarkLogic/custom-dictionary');
cdict.getLanguages();
// Returns a list of language codes such as the following:
// ("en", "ja", "zh", "zh_Hant")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.