Added new text values to translation file.

This commit is contained in:
Ajay Ramachandran 2019-08-14 21:53:38 -04:00
parent a7f3701272
commit 215098f647
2 changed files with 8 additions and 2 deletions

View file

@ -42,6 +42,12 @@
"Segments": {
"message": "sponsor segments"
},
"noticeTitle": {
"message": "Sponsor Skipped"
},
"noticeClosingMessage": {
"message": "closes in 7s"
},
"Dismiss": {
"message": "Dismiss"
},

View file

@ -888,7 +888,7 @@ function openSkipNotice(UUID){
noticeMessage.id = "sponsorSkipMessage" + UUID;
noticeMessage.classList.add("sponsorSkipMessage");
noticeMessage.classList.add("sponsorSkipObject");
noticeMessage.innerText = "Sponsor Skipped";
noticeMessage.innerText = chrome.i18n.getMessage("noticeTitle");
//create the first column
logoColumn.appendChild(logoElement);
@ -900,7 +900,7 @@ function openSkipNotice(UUID){
closeButtonContainer.style.top = "11px";
let timeLeft = document.createElement("span");
timeLeft.innerText = "closes in 7s";
timeLeft.innerText = chrome.i18n.getMessage("noticeClosingMessage");
timeLeft.className = "sponsorSkipObject sponsorSkipNoticeTimeLeft";
let hideButton = document.createElement("img");