translation section for update notification

This commit is contained in:
SpikeHD 2022-04-30 01:58:58 -07:00
parent db522bf82c
commit f8c75c0adc
4 changed files with 10 additions and 5 deletions

View File

@ -61,5 +61,7 @@
"alertUserTaken": "Username is taken", "alertUserTaken": "Username is taken",
"alertPassMismatch": "Password and password confirmation do not match", "alertPassMismatch": "Password and password confirmation do not match",
"alertAuthNoRegister": "Authentication is disabled, no need to register!", "alertAuthNoRegister": "Authentication is disabled, no need to register!",
"alertRegisterSuccess": "Registration successful!" "alertRegisterSuccess": "Registration successful!",
"updateNotifText": "A new update is available! Newest version: "
} }

View File

@ -66,12 +66,12 @@ async function checkForUpdates() {
return latest return latest
} }
async function displayUpdate(version) { async function displayUpdate() {
const latest = await checkForUpdates() const latest = await checkForUpdates()
const versionDisplay = document.querySelector('#newestVersion') const versionDisplay = document.querySelector('#newestVersion')
const notif = document.querySelector('#downloadNotif') const notif = document.querySelector('#downloadNotif')
//if (latest === `v${NL_APPVERSION}`) return if (latest === `v${NL_APPVERSION}`) return
versionDisplay.innerText = latest versionDisplay.innerText = latest

View File

@ -89,4 +89,7 @@ async function doTranslation() {
set('loginPopupContentBodyBtnLogin', 'authLoginBtn') set('loginPopupContentBodyBtnLogin', 'authLoginBtn')
set('loginPopupContentBodyBtnRegister', 'authRegisterBtn') set('loginPopupContentBodyBtnRegister', 'authRegisterBtn')
set('noLoginBtn', 'launchWithoutAuth') set('noLoginBtn', 'launchWithoutAuth')
// update notification
set('updateNotifText', 'updateNotifText')
} }

View File

@ -551,13 +551,13 @@ a {
padding: 1em; padding: 1em;
top: 80%; top: 80%;
left: 110%; left: 120%;
width: 20%; width: 20%;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
transition: left 0.4s ease-in-out; transition: left 0.5s ease-in-out;
} }
#downloadNotif:hover { #downloadNotif:hover {