diff options
author | Alystrasz <contact@remyraes.com> | 2022-08-06 23:26:46 +0200 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-08-06 23:26:49 +0200 |
commit | 77f7e6fe85c243371c676ec4d4f60de8920d938d (patch) | |
tree | 5aaa5824825c22be34b5e123767beeee337b8023 /src/extras/requests.js | |
parent | 26034ec3475a61682a17c95cb2bffdbc9e52af54 (diff) | |
download | Viper-77f7e6fe85c243371c676ec4d4f60de8920d938d.tar.gz Viper-77f7e6fe85c243371c676ec4d4f60de8920d938d.zip |
feat: translate "impossible to fetch release notes" messages
Diffstat (limited to 'src/extras/requests.js')
-rw-r--r-- | src/extras/requests.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extras/requests.js b/src/extras/requests.js index 6066e90..7509e9e 100644 --- a/src/extras/requests.js +++ b/src/extras/requests.js @@ -2,6 +2,7 @@ const { app } = require("electron"); const path = require("path"); const fs = require("fs"); const { https } = require("follow-redirects"); +const lang = require("../lang"); // all requests results are stored in this file @@ -120,7 +121,7 @@ async function getNsReleaseNotes() { resolve( cache[NORTHSTAR_RELEASE_NOTES_KEY]["body"] ); } else { console.error("Couldn't fetch Northstar release notes, cache is empty."); - resolve( ["Couldn't fetch Northstar release notes.\nTry again later!"] ); + resolve( [lang("request.northstar.noReleaseNotes")] ); } }); } @@ -171,7 +172,7 @@ async function getVpReleaseNotes() { resolve( cache[VIPER_RELEASE_NOTES_KEY]["body"] ); } else { console.error("Couldn't fetch Viper release notes, cache is empty."); - resolve( ["Couldn't fetch Viper release notes.\nTry again later!"] ); + resolve( [lang("request.viper.noReleaseNotes")] ); } }); } |