i18n for uicore.js

This commit is contained in:
Kamesuta 2023-09-02 21:41:21 +09:00
parent 9a956c4553
commit ba8a346df4
2 changed files with 10 additions and 3 deletions

View File

@ -42,7 +42,7 @@ if(!isDev){
switch(arg){
case 'checking-for-update':
loggerAutoUpdater.info('Checking for update..')
settingsUpdateButtonStatus('Checking for Updates..', true)
settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.checkingForUpdateButton'), true)
break
case 'update-available':
loggerAutoUpdater.info('New update available', info.version)
@ -56,7 +56,7 @@ if(!isDev){
break
case 'update-downloaded':
loggerAutoUpdater.info('Update ' + info.version + ' ready to be installed.')
settingsUpdateButtonStatus('Install Now', false, () => {
settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.installNowButton'), false, () => {
if(!isDev){
ipcRenderer.send('autoUpdateAction', 'installUpdateNow')
}
@ -65,7 +65,7 @@ if(!isDev){
break
case 'update-not-available':
loggerAutoUpdater.info('No new update found.')
settingsUpdateButtonStatus('Check for Updates')
settingsUpdateButtonStatus(Lang.queryJS('uicore.autoUpdate.checkForUpdatesButton'))
break
case 'ready':
updateCheckListener = setInterval(() => {

View File

@ -326,5 +326,12 @@
"selectAnotherAccountButton": "Select Another Account"
}
}
},
"uicore": {
"autoUpdate": {
"checkingForUpdateButton": "Checking for Updates...",
"installNowButton": "Install Now",
"checkForUpdatesButton": "Check for Updates"
}
}
}