string added to i18n

This commit is contained in:
mic 2026-03-28 12:02:34 +01:00
parent f10beb8097
commit 1b0da7ce61

View file

@ -1264,7 +1264,7 @@ switch (message.command) {
const translationText = document.createElement('div');
translationText.style.cssText = 'white-space: pre-wrap; line-height: 1.5;';
if (translationData.error) {
translationText.textContent = translationData.message || browser.i18n.getMessage("translate_error") || "Translation failed.";
translationText.textContent = translationData.message || browser.i18n.getMessage("translate_error") || browser.i18n.getMessage("translate_error");
} else {
translationText.textContent = translationData.translated_text || '';
}