Fixed: Incomplete translation in label for manipulateDOM-indicator

This commit is contained in:
nobody 2020-05-31 19:00:30 +02:00
parent 065ea447cb
commit 30525acaf8
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 3 additions and 0 deletions

View File

@ -41,7 +41,10 @@ helpers.insertI18nContentIntoDocument = function (document) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
if (i18nElement.id === 'button-copy-rule-set' && chrome.i18n.getMessage(i18nMessageName) !== '') {
i18nElement.value = chrome.i18n.getMessage('copyRuleSet');
} else if (i18nElement.id === 'manipulateDOM-indicator' && chrome.i18n.getMessage(i18nMessageName) === '') {
i18nElement.innerText = "Tweak HTML source code";
}
if(chrome.i18n.getMessage(i18nMessageName) !== '') {
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
i18nElement.setAttribute('dir', scriptDirection);