Loading TOC...


cdict:get-languages() as xs:string*


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


xquery version "1.0-ml";
import module namespace cdict = "http://marklogic.com/xdmp/custom-dictionary" 
  at "/MarkLogic/custom-dictionary.xqy";


(: 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.