Loading TOC...

cdict.getLanguages

cdict.getLanguages() as Sequence

Summary

Return the ISO language codes for all licensed languages.

Required Privileges

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

http://marklogic.com/xdmp/privileges/custom-dictionary-user

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

Example

'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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.