clang.languageConfigRead() as element(lang.userLanguages)
This function reads the custom language configuration specification from the cluster configuration files.
custom-language-admin-read
role or the following privileges:
http://marklogic.com/xdmp/privileges/custom-language-read
http://marklogic.com/xdmp/privileges/xdmp-read-cluster-config-file/languages.xml
'use strict'; const clang = require('/MarkLogic/custom-language'); clang.languageConfigRead();