From 14a845836ba8805e80b9c8e4ab03444a60bbc7fc Mon Sep 17 00:00:00 2001 From: steve green Date: Sun, 16 Jun 2024 09:02:28 +0800 Subject: [PATCH] Update i18n.js --- public/scripts/i18n.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/scripts/i18n.js b/public/scripts/i18n.js index df86a3c26..87c288574 100644 --- a/public/scripts/i18n.js +++ b/public/scripts/i18n.js @@ -112,11 +112,17 @@ export function applyLocale(root = document) { if (localizedValue || localizedValue == '') { $(this).attr(attributeMatch[1], localizedValue); } + else { + console.warn(`Missing translation for '${attributeMatch[2]}'`); + } } else { // No attribute tag, treat as 'text' const localizedValue = localeData?.[key]; if (localizedValue || localizedValue == '') { $(this).text(localizedValue); } + else { + console.warn(`Missing translation for '${key}'`); + } } } });