From 18b257b031c7bb45cda1cedf573bb90bd2ae929b Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 4 Sep 2020 19:16:41 +0500 Subject: [PATCH] "Loading" localized strings --- src/popup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup.ts b/src/popup.ts index 85f46af8..1bb5d195 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -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({