string added to i18n
This commit is contained in:
parent
f10beb8097
commit
1b0da7ce61
1 changed files with 1 additions and 1 deletions
|
|
@ -1264,7 +1264,7 @@ switch (message.command) {
|
||||||
const translationText = document.createElement('div');
|
const translationText = document.createElement('div');
|
||||||
translationText.style.cssText = 'white-space: pre-wrap; line-height: 1.5;';
|
translationText.style.cssText = 'white-space: pre-wrap; line-height: 1.5;';
|
||||||
if (translationData.error) {
|
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 {
|
} else {
|
||||||
translationText.textContent = translationData.translated_text || '';
|
translationText.textContent = translationData.translated_text || '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue