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": { "Segments": {
"message": "sponsor segments" "message": "sponsor segments"
}, },
"noticeTitle": {
"message": "Sponsor Skipped"
},
"noticeClosingMessage": {
"message": "closes in 7s"
},
"Dismiss": { "Dismiss": {
"message": "Dismiss" "message": "Dismiss"
}, },

View File

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