Merge pull request #461 from maximmax42/patch-1

Localization of the "Loading..." strings
This commit is contained in:
Ajay Ramachandran
2020-09-04 21:03:26 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1325,7 +1325,7 @@ function clearSponsorTimes() {
function vote(type: number, UUID: string, category?: string, skipNotice?: SkipNoticeComponent) {
if (skipNotice !== null && skipNotice !== undefined) {
//add loading info
skipNotice.addVoteButtonInfo.bind(skipNotice)("Loading...")
skipNotice.addVoteButtonInfo.bind(skipNotice)(chrome.i18n.getMessage("Loading"))
skipNotice.setNoticeInfoMessage.bind(skipNotice)();
}

View File

@@ -827,7 +827,7 @@ async function runThePopup(messageListener?: MessageListener) {
function submitUsername() {
//add loading indicator
PageElements.setUsernameStatusContainer.style.display = "unset";
PageElements.setUsernameStatus.innerText = "Loading...";
PageElements.setUsernameStatus.innerText = chrome.i18n.getMessage("Loading");
//get the userID
utils.sendRequestToServer("POST", "/api/setUsername?userID=" + Config.config.userID + "&username=" + PageElements.usernameInput.value, function (response) {
@@ -874,7 +874,7 @@ async function runThePopup(messageListener?: MessageListener) {
function vote(type, UUID) {
//add loading info
addVoteMessage("Loading...", UUID)
addVoteMessage(chrome.i18n.getMessage("Loading"), UUID)
//send the vote message to the tab
chrome.runtime.sendMessage({