import Prism from 'prismjs';
import rawLoadLanguages from 'prismjs/components/index.js';
// prevent warning messages
rawLoadLanguages.silent = true;
export const loadLanguages = (languages) => {
    const langsToLoad = languages.filter((item) => !Prism.languages[item]);
    if (langsToLoad.length) {
        rawLoadLanguages(langsToLoad);
    }
};
