1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00
CanvasBlocker/.tools/checkMissingTranslation.js

17 lines
368 B
JavaScript
Raw Normal View History

2018-09-12 22:54:25 +02:00
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){
2019-11-30 02:05:37 +01:00
"use strict";
2018-09-12 22:54:25 +02:00
if (en[key].message){
if (!la[key] || !la[key].message){
console.log(key, "missing");
}
}
});