Loading TOC...

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'));
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.