From abc78769ec9095b546ca493ded3402be3f48cd10 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Sun, 3 May 2020 18:03:15 +0200 Subject: [PATCH] Log a warning if a localization selector cannot find any target --- app/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/index.js b/app/index.js index 1cd29c9..1070ac1 100644 --- a/app/index.js +++ b/app/index.js @@ -1032,6 +1032,8 @@ function translatePiece(selector, kind, parameters, key) { element.setAttribute(parameters.name || 'value', translation); break; } + } else { + console.warn(`translation selector "${selector}" for "${key}" did not match any element`) } }