fix some path issues for translation review scripts

pull/1/head
ansuz 3 years ago
parent ae7e5e0636
commit 4f196270ce

@ -1,4 +1,4 @@
var EN = require("../www/common/translations/messages.json"); var EN = require("../../www/common/translations/messages.json");
var simpleTags = [ var simpleTags = [
'<br>', '<br>',
@ -118,7 +118,7 @@ processLang(EN, 'en', true);
'zh', 'zh',
].forEach(function (lang) { ].forEach(function (lang) {
try { try {
var map = require("../www/common/translations/messages." + lang + ".json"); var map = require("../../www/common/translations/messages." + lang + ".json");
if (!Object.keys(map).length) { return; } if (!Object.keys(map).length) { return; }
processLang(map, lang); processLang(map, lang);
} catch (err) { } catch (err) {

@ -1,4 +1,4 @@
var Messages = require("../www/common/translations/messages.json"); var Messages = require("../../www/common/translations/messages.json");
var Exec = require("child_process").exec; var Exec = require("child_process").exec;
var ignoreLines = function (source, pattern) { var ignoreLines = function (source, pattern) {

Loading…
Cancel
Save