"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addLanguageTerm = addLanguageTerm;
exports.getAllLanguageTerms = getAllLanguageTerms;
exports.lookupLanguageTerm = lookupLanguageTerm;
const services_1 = require("../../../services");
const config_1 = require("../../../config");
async function addLanguageTerm(term, sources) {
    const language = await (0, config_1.getLanguageConfig)();
    language[term] = { events: [], sources };
    await (0, config_1.updateLanguageConfig)(language);
}
async function getAllLanguageTerms() {
    const language = await (0, config_1.getLanguageConfig)();
    return Object.keys(language);
}
async function lookupLanguageTerm(term) {
    const { Plugins } = (0, services_1.services)();
    const language = await (0, config_1.getLanguageConfig)();
    return Plugins.call("language", term);
}
//# sourceMappingURL=index.js.map