mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Added missing translation checker
This commit is contained in:
parent
be337fcd43
commit
040acb311f
1 changed files with 15 additions and 0 deletions
15
.tools/checkMissingTranslation.js
Normal file
15
.tools/checkMissingTranslation.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
const en = require("../_locales/en/messages.json");
|
||||||
|
const enKeys = Object.keys(en);
|
||||||
|
|
||||||
|
const language = process.argv[2];
|
||||||
|
|
||||||
|
const la = require("../_locales/" + language + "/messages.json");
|
||||||
|
const laKeys = Object.keys(la);
|
||||||
|
|
||||||
|
enKeys.forEach(function(key){
|
||||||
|
if (en[key].message){
|
||||||
|
if (!la[key] || !la[key].message){
|
||||||
|
console.log(key, "missing");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue