diff --git a/js/ui.js b/js/ui.js
index 0132110..ec19ef6 100644
--- a/js/ui.js
+++ b/js/ui.js
@@ -5497,9 +5497,9 @@ function getI18n(context){
].join('')
alertPlaceholder.append(wrapper)
}
- alert(`
-
- There's a new version of Chirpity available! Check the website for more information`,
+ const link = ``;
+ const message = interpolate(getI18n(i18nUpdateMessage), {link: link})
+ alert(`${message}`,
'warning');
trackEvent(config.UUID, 'Update message', `From ${VERSION}`, `To: ${latestVersion}`);
}
@@ -5511,6 +5511,19 @@ function getI18n(context){
});
}
}
+ const i18nUpdateMessage = {
+ en: 'There\'s a new version of Chirpity available! ${link}Check the website for more information',
+ da: 'Der er en ny version af Chirpity tilgængelig! ${link}Besøg hjemmesiden for mere information',
+ de: 'Eine neue Version von Chirpity ist verfügbar! ${link}Besuchen Sie die Website für weitere Informationen',
+ es: '¡Hay una nueva versión de Chirpity disponible! ${link}Visita el sitio web para más información',
+ fr: 'Une nouvelle version de Chirpity est disponible ! ${link}Consultez le site web pour plus d\'informations',
+ nl: 'Er is een nieuwe versie van Chirpity beschikbaar! ${link}Bezoek de website voor meer informatie',
+ pt: 'Há uma nova versão do Chirpity disponível! ${link}Visite o site para mais informações',
+ ru: 'Доступна новая версия Chirpity! ${link}Посетите сайт для получения дополнительной информации',
+ sv: 'En ny version av Chirpity är tillgänglig! ${link}Besök webbplatsen för mer information',
+ zh: 'Chirpity有新版本可用!${link}访问网站了解更多信息'
+ };
+
function generateToast({message = '', type = 'info', autohide = true, variables = undefined} ={}) {
diff --git a/package.json b/package.json
index dcee634..21849d6 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"export": "electron-builder build --m -p always",
"AppImage": "electron-builder build --linux --x64 -p always",
"build": "electron-builder --win --x64 -p always",
- "testBuild": "electron-builder --win",
+ "testBuild": "electron-builder --m",
"postinstall": "electron-builder install-app-deps",
"test": "playwright test"
},
diff --git a/test/menu.spec.ts b/test/menu.spec.ts
index 913cde8..caf1966 100644
--- a/test/menu.spec.ts
+++ b/test/menu.spec.ts
@@ -76,7 +76,7 @@ test.beforeAll(async () => {
clearInterval(checkPage);
resolve('');
}
- }, 5000);
+ }, 100);
});
})
diff --git a/test/record.creation.spec.ts b/test/record.creation.spec.ts
index d2bb98c..6037b8b 100644
--- a/test/record.creation.spec.ts
+++ b/test/record.creation.spec.ts
@@ -69,13 +69,14 @@ test.beforeAll(async () => {
console.log(msg.text())
})
})
+
await new Promise((resolve) => {
const checkPage = setInterval(async () => {
if (page) {
clearInterval(checkPage);
resolve('');
}
- }, 5000);
+ }, 100);
});
})