diff options
author | Alystrasz <contact@remyraes.com> | 2022-01-11 16:40:35 +0100 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-01-11 16:40:35 +0100 |
commit | fe6dd267136f09bab721d3f02d43b991ac2bad3d (patch) | |
tree | 62ce19dcba35d988b933e2b9114277018d1df1ab | |
parent | 2682e37420b00d3c3add4ce22209205dab0af57f (diff) | |
download | Viper-fe6dd267136f09bab721d3f02d43b991ac2bad3d.tar.gz Viper-fe6dd267136f09bab721d3f02d43b991ac2bad3d.zip |
[refactor] adding translations for notification texts
-rw-r--r-- | src/lang/en.json | 3 | ||||
-rw-r--r-- | src/lang/fr.json | 3 | ||||
-rw-r--r-- | src/utils.js | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/lang/en.json b/src/lang/en.json index 68d46c7..2003bee 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -58,6 +58,9 @@ "gui.update.uptodate": "Already up to date!", "gui.update.available": "A new update for Viper is available, do you want to restart and apply it?", + "gui.nsupdate.gaming.title": "Northstar update available!", + "gui.nsupdate.gaming.body": "An update for Northstar is available.\nYou can force its installation after closing the game.", + "gui.launch": "Launch", "gui.launchvanilla": "Vanilla", "gui.launchnorthstar": "Northstar", diff --git a/src/lang/fr.json b/src/lang/fr.json index 22afa9a..ec4b263 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -58,6 +58,9 @@ "gui.update.uptodate": "Déjà à jour !", "gui.update.available": "Une mise à jour pour Viper est disponible, voulez-vous l'installer maintenant ?", + "gui.nsupdate.gaming.title": "Mise à jour Northstar disponible !", + "gui.nsupdate.gaming.body": "Une mise à jour pour Northstar est disponible.\nVous pourrez l'installer après avoir fermé le jeu.", + "gui.launch": "Jouer", "gui.launchvanilla": "Vanilla", "gui.launchnorthstar": "Northstar", diff --git a/src/utils.js b/src/utils.js index acda691..95e54e0 100644 --- a/src/utils.js +++ b/src/utils.js @@ -73,8 +73,8 @@ northstar_auto_updates: { if (await _isGameRunning()) { console.log('Not installing update since game is running.'); new Notification({ - title: "Northstar update available", - body: 'An update for Northstar is available.\nYou can force its installation after closing the game.' + title: lang("gui.nsupdate.gaming.title"), + body: lang("gui.nsupdate.gaming.body") }).show(); } else { console.log('Launching update process.'); |