From b189dea2996d6477d72581f258d105302691ce77 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 7 Aug 2020 20:57:22 -0400 Subject: [PATCH] Remove duplicate i18n strings --- public/_locales/en/messages.json | 6 ------ src/popup.ts | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 927da004..4a0b39c4 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -19,12 +19,6 @@ "channelWhitelisted": { "message": "Channel Whitelisted!" }, - "Sponsor": { - "message": "segment" - }, - "Sponsors": { - "message": "segments" - }, "Segment": { "message": "segment" }, diff --git a/src/popup.ts b/src/popup.ts index 68f208c7..678fb0e3 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -156,9 +156,9 @@ async function runThePopup(messageListener?: MessageListener) { //get the amount of times this user has contributed and display it to thank them if (Config.config.sponsorTimesContributed != undefined) { if (Config.config.sponsorTimesContributed !== 1) { - PageElements.sponsorTimesContributionsDisplayEndWord.innerText = chrome.i18n.getMessage("Sponsors"); + PageElements.sponsorTimesContributionsDisplayEndWord.innerText = chrome.i18n.getMessage("Segments"); } else { - PageElements.sponsorTimesContributionsDisplayEndWord.innerText = chrome.i18n.getMessage("Sponsor"); + PageElements.sponsorTimesContributionsDisplayEndWord.innerText = chrome.i18n.getMessage("Segment"); } PageElements.sponsorTimesContributionsDisplay.innerText = Config.config.sponsorTimesContributed; PageElements.sponsorTimesContributionsContainer.style.display = "unset"; @@ -206,9 +206,9 @@ async function runThePopup(messageListener?: MessageListener) { //get the amount of times this user has skipped a sponsor if (Config.config.skipCount != undefined) { if (Config.config.skipCount != 1) { - PageElements.sponsorTimesSkipsDoneEndWord.innerText = chrome.i18n.getMessage("Sponsors"); + PageElements.sponsorTimesSkipsDoneEndWord.innerText = chrome.i18n.getMessage("Segments"); } else { - PageElements.sponsorTimesSkipsDoneEndWord.innerText = chrome.i18n.getMessage("Sponsor"); + PageElements.sponsorTimesSkipsDoneEndWord.innerText = chrome.i18n.getMessage("Segment"); } PageElements.sponsorTimesSkipsDoneDisplay.innerText = Config.config.skipCount;