cdict:get-languages

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

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

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

cdict:get-languages()

(: Returns a list of language codes such as the following:
 : ("en", "ja", "zh", "zh_Hant") :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy