diff options
author | Maxim <[email protected]> | 2020-08-27 23:53:53 +0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-27 23:53:53 +0500 |
commit | cc65dea4c51393b91312b3ab872958ad5960eab8 (patch) | |
tree | 79deccf2dab319d460faa5cc328c6fc343adbb8f /src | |
parent | f6110899fb9dc56d9a7a144676843672b49573c1 (diff) | |
download | SponsorBlock-cc65dea4c51393b91312b3ab872958ad5960eab8.tar.gz SponsorBlock-cc65dea4c51393b91312b3ab872958ad5960eab8.zip |
Missing i18n strings for " to " between timecodes
Diffstat (limited to 'src')
-rw-r--r-- | src/popup.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/popup.ts b/src/popup.ts index 678fb0e3..85f46af8 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -392,7 +392,7 @@ async function runThePopup(messageListener?: MessageListener) { extraInfo = " (" + chrome.i18n.getMessage("hiddenDueToDuration") + ")"; } - sponsorTimeButton.innerText = getFormattedTime(request.sponsorTimes[i].segment[0]) + " to " + getFormattedTime(request.sponsorTimes[i].segment[1]) + extraInfo; + sponsorTimeButton.innerText = getFormattedTime(request.sponsorTimes[i].segment[0]) + " " + chrome.i18n.getMessage("to") + " " + getFormattedTime(request.sponsorTimes[i].segment[1]) + extraInfo; let votingButtons = document.createElement("div"); @@ -448,7 +448,7 @@ async function runThePopup(messageListener?: MessageListener) { let timeMessage = getFormattedTime(sponsorTimes[i].segment[s]); //if this is an end time if (s == 1) { - timeMessage = " to " + timeMessage; + timeMessage = " " + chrome.i18n.getMessage("to") + " " + timeMessage; } else if (i > 0) { //add commas if necessary timeMessage = ", " + timeMessage; @@ -505,7 +505,7 @@ async function runThePopup(messageListener?: MessageListener) { let timeMessage = getFormattedTime(sponsorTimes[i][s]); //if this is an end time if (s == 1) { - timeMessage = " to " + timeMessage; + timeMessage = " " + chrome.i18n.getMessage("to") + " " + timeMessage; } else if (i > 0) { //add commas if necessary timeMessage = timeMessage; @@ -614,7 +614,7 @@ async function runThePopup(messageListener?: MessageListener) { colonText.innerText = ":"; let toText = document.createElement("span"); - toText.innerText = " to "; + toText.innerText = " " + chrome.i18n.getMessage("to") + " "; //remove all children to replace while (sponsorTimeContainer.firstChild) { |