diff options
| author | Henry Jameson <me@hjkos.com> | 2018-09-06 22:10:41 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-09-06 22:10:41 +0300 |
| commit | e6adddbba69cbcc71d3f3ba3d0734b7fefbc44d4 (patch) | |
| tree | f8c7ec2ea1759e013b5e53dda73cf875b656cd8d | |
| parent | dbd010abd4ad75fa946e72117bbb10ec80e14ee0 (diff) | |
added usage
| -rwxr-xr-x | src/i18n/compare.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/i18n/compare.js b/src/i18n/compare.js index 1e8715f3..e9314376 100755 --- a/src/i18n/compare.js +++ b/src/i18n/compare.js @@ -1,5 +1,27 @@ #!/usr/bin/env node const arg = process.argv[2] + +if (typeof arg === 'undefined') { + console.log('This is a very simple and tiny tool that checks en.json with any other language and') + console.log('outputs all the things present in english but missing in foreign language.') + console.log('') + console.log('Usage: ./compare.js <lang> ') + console.log(' or') + console.log(' node ./compare.js <lang>') + console.log('') + console.log('Where <lang> is name of .json file containing language. For ./fi.json it should be:') + console.log(' ./compare.js fi ') + console.log('') + console.log('Limitations: ') + console.log('* This program does not work with languages left over in messages.js') + console.log('* This program does not check for extra strings present in foreign language but missing') + console.log(' in english.js (for now)') + console.log('') + console.log('There are no other arguments or options. Make an issue if you encounter a bug or want') + console.log('some feature to be implemented. Merge requests are welcome as well.') + return +} + const english = require('./en.json') const foreign = require(`./${arg}.json`) |
