From 71c6efd3bba6550854f81ddac6d004abe9ec89fc Mon Sep 17 00:00:00 2001 From: rugk Date: Sun, 1 Mar 2026 15:16:05 +0000 Subject: [PATCH] wipfeat(i18n): improve error logging for missing translation --- js/privatebin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 6160efcf..aaa11568 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -760,7 +760,7 @@ window.PrivateBin = (function () { // for all other languages than English for which this behaviour // is expected as it is built-in, log error if (language !== null && language !== 'en') { - console.error('Missing translation for: \'' + messageId + '\' in language ' + language); + console.error('Missing translation for: ', messageId, 'in language', language); // fallback to English } @@ -944,7 +944,7 @@ window.PrivateBin = (function () { /** * Check if string contains valid HTML code. - * + * * If it is no string at all, this always returns false for compatibility. * * @name I18n.isStringContainsHtml