site/node_modules/flexsearch/dist/module/global.js

22 lines
349 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
export const global_lang = {};
export const global_charset = {};
/**
* @param {!string} name
* @param {Object} charset
*/
export function registerCharset(name, charset) {
global_charset[name] = charset;
}
/**
* @param {!string} name
* @param {Object} lang
*/
export function registerLanguage(name, lang) {
global_lang[name] = lang;
}