diff --git a/tools/check-translations.js b/tools/check-translations.js index f5f45b38..eaf7e98a 100644 --- a/tools/check-translations.js +++ b/tools/check-translations.js @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -import translations from '../src/i18n/translations/translations.js'; +import translations from '../src/gui/src/i18n/translations/translations.js'; import fs from 'fs'; let hadError = false; @@ -27,7 +27,7 @@ function reportError(message) { // Check that each translation file is recorded in `translations` async function checkTranslationRegistrations() { - const files = await fs.promises.readdir('./src/i18n/translations'); + const files = await fs.promises.readdir('./src/gui/src/i18n/translations'); for (const fileName of files) { if (!fileName.endsWith('.js')) continue; const translationName = fileName.substring(0, fileName.length - 3); @@ -77,8 +77,8 @@ async function checkTranslationUsage() { const enDictionary = translations.en.dictionary; const sourceDirectories = [ - './src/helpers', - './src/UI', + './src/gui/src/helpers', + './src/gui/src/UI', ]; // Looks for i18n() calls using either ' or " for the key string.