-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10320 from vector-im/travis/ci-i18n
Verify i18n in CI
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} |