From 9ed4d74f1d1fe74b16d734eb1491d907c738a303 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 6 Jan 2026 00:25:07 +0100 Subject: [PATCH] Update test/backend-test/check-translations.test.js --- test/backend-test/check-translations.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/backend-test/check-translations.test.js b/test/backend-test/check-translations.test.js index df2be8e1e..33ec04fc5 100644 --- a/test/backend-test/check-translations.test.js +++ b/test/backend-test/check-translations.test.js @@ -24,6 +24,8 @@ describe("Check Translations", () => { it("should not have missing translation keys", () => { const enTranslations = JSON.parse(fs.readFileSync("src/lang/en.json", "utf-8")); + // this is a resonably crude check, you can get around this trivially + /// this check is just to save on maintainer energy to explain this on every review ^^ const translationRegex = /\$t\(['"](?.*?)['"]\s*[,)]|i18n-t\s+keypath=\x22(?[^\x22]+)\x22/g; const missingKeys = [];