diff --git a/scripts/translations/lint-translations.js b/scripts/translations/lint-translations.js index 5e7f81b17..e02bca46a 100644 --- a/scripts/translations/lint-translations.js +++ b/scripts/translations/lint-translations.js @@ -1,4 +1,4 @@ -var EN = require("../www/common/translations/messages.json"); +var EN = require("../../www/common/translations/messages.json"); var simpleTags = [ '
', @@ -118,7 +118,7 @@ processLang(EN, 'en', true); 'zh', ].forEach(function (lang) { 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; } processLang(map, lang); } catch (err) { diff --git a/scripts/translations/unused-translations.js b/scripts/translations/unused-translations.js index 26156cd03..941835cba 100644 --- a/scripts/translations/unused-translations.js +++ b/scripts/translations/unused-translations.js @@ -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 ignoreLines = function (source, pattern) {