Move i18n utils to its own module

This commit is contained in:
Germain Souquet 2021-04-26 16:52:11 +01:00
parent dc4cc02682
commit 86c61cab33
3 changed files with 108 additions and 13 deletions

View file

@ -1,10 +0,0 @@
const fs = require("fs");
if (process.argv.length < 4) throw new Error("Missing source and target file arguments");
const sourceFile = fs.readFileSync(process.argv[2], 'utf8');
const targetFile = fs.readFileSync(process.argv[3], 'utf8');
if (sourceFile !== targetFile) {
throw new Error("Files do not match");
}