diff --git a/tools/fix-transifex.js b/tools/fix-transifex.js index 10700c7e..eb67e5e0 100644 --- a/tools/fix-transifex.js +++ b/tools/fix-transifex.js @@ -60,7 +60,7 @@ function fixLngFile(lng) { if (resStr !== jsonStr) { let err; if (resStr === '{}') { - fs.rmdirSync(`${DIR}${lng}`, {recursive: true}); + fs.rmSync(`${DIR}${lng}`, {recursive: true, force: true}); err = 'no translations -> deleted'; } else { fse.outputFileSync(makeFileName(lng), resStr + '\n');