MarkLogic 9 Product Documentation
clang.deleteUserLanguage

clang.deleteUserLanguage(
   config as element(lang.userLanguages),
   lang as String
) as element(lang.userLanguages)

Summary

This function returns user languages configuration with any existing configuration item for a given language removed.

Parameters
config A custom language configuration specification, typically as returned from one of the custom language module functions.
lang An ISO language code, such as "en".

See Also

Example

'use strict';
const clang = require('/MarkLogic/custom-language');

// NOTE: Calling clang.languageConfigWrite causes a restart
clang.languageConfigWrite(
  clang.deleteUserLanguage(
    clang.languageConfigRead(), 'ca'));
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy