Verify i18n in CI
This commit is contained in:
parent
bba167c433
commit
6b07186078
3 changed files with 20 additions and 0 deletions
10
scripts/compare-file.js
Normal file
10
scripts/compare-file.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue