style: use template literal

This commit is contained in:
rugk
2026-03-03 10:07:52 +00:00
parent 3a08f1866d
commit d5bf7674ff

View File

@@ -926,7 +926,7 @@ window.PrivateBin = (function () {
document.dispatchEvent(new CustomEvent(languageLoadedEvent));
})
.catch(error => {
console.error('Language \'%s\' could not be loaded (%s). Translation failed, fallback to English.', newLanguage, error.message);
console.error(`Language \'${newLanguage}\' could not be loaded (${error.message}). Translation failed, fallback to English.`);
language = 'en';
});
};