function copyFiles(langCode, baseLang) {
    if (fs.existsSync("./languages")) {
        fs.rmSync("./languages", {
            recursive: true,
            force: true,
        });
    }
    fs.mkdirSync("./languages");

    if (!fs.existsSync(`../../src/languages/${langCode}.js`)) {
        fs.closeSync(fs.openSync(`./languages/${langCode}.js`, "a"));
    } else {
        fs.copyFileSync(`../../src/languages/${langCode}.js`, `./languages/${langCode}.js`);
    }
    fs.copyFileSync("../../src/languages/en.js", "./languages/en.js");
    if (baseLang !== "en") {
        fs.copyFileSync(`../../src/languages/${baseLang}.js`, `./languages/${baseLang}.js`);
    }
}
Copy across the required language files
Creates a local directory (./languages) and copies the required files
into it.
@param {string} langCode Code of language to update. A file will be
created with this code if one does not already exist
@param {string} baseLang The second base language file to copy. This
will be ignored if set to "en" as en.js is copied by default
@returns {void}