add new lines

This commit is contained in:
Maroxy 2021-10-23 10:51:17 +02:00
parent 44e3a031c2
commit 8f570b8b64
4 changed files with 7 additions and 4 deletions

View file

@ -7,6 +7,7 @@
"SettingsTitle": "Einstellungen",
"GeneralSettings": "Generell",
"Downloading": "wird Heruntergeladen...",
"Unpack": "wird Entpackt",
"GameDownloaded": "Spiel würde erfolgreich heruntergeladen",
"ApplyPatch": "Patch wird angewendet",
"PatchRequired": "Patch nicht verfügbar",

View file

@ -7,6 +7,7 @@
"SettingsTitle": "Settings",
"GeneralSettings": "General",
"Downloading": "Downloading...",
"Unpack": "Unpacking",
"GameDownloaded": "Game was successfully installed",
"ApplyPatch": "Applying patch...",
"PatchRequired": "Patch required",

View file

@ -7,6 +7,7 @@
"SettingsTitle": "Settings",
"GeneralSettings": "General",
"Downloading": "Downloading...",
"Unpack": "Unpacking",
"GameDownloaded": "Game was successfully installed",
"ApplyPatch": "Applying patch...",
"PatchRequired": "Patch required",

View file

@ -183,7 +183,7 @@ $(() => {
LauncherUI.initProgressBar();
Genshinlib.downloadFile(diff.path, path.join(Genshinlib.launcherDir, diff.name), (current: number, total: number, difference: number) => {
LauncherUI.updateProgressBar('Downloaded', current, total, difference);
LauncherUI.updateProgressBar(i18n.translate('Downloading'), current, total, difference);
}).then(() => {
/**
* Unpacking downloaded game
@ -197,7 +197,7 @@ $(() => {
LauncherUI.initProgressBar();
Genshinlib.unzip(path.join(Genshinlib.launcherDir, diff.name), Genshinlib.gameDir, (current: number, total: number, difference: number) => {
LauncherUI.updateProgressBar('Unpacking', current, total, difference);
LauncherUI.updateProgressBar(i18n.translate('Unpack'), current, total, difference);
}).then(() => {
/**
* Downloading voice data
@ -220,7 +220,7 @@ $(() => {
LauncherUI.initProgressBar();
Genshinlib.downloadFile(voicePack.path, path.join(Genshinlib.launcherDir, voicePack.name), (current: number, total: number, difference: number) => {
LauncherUI.updateProgressBar('Downloaded', current, total, difference);
LauncherUI.updateProgressBar(i18n.translate('Downloading'), current, total, difference);
}).then(() => {
/**
* Unpacking downloaded game
@ -231,7 +231,7 @@ $(() => {
LauncherUI.initProgressBar();
Genshinlib.unzip(path.join(Genshinlib.launcherDir, voicePack.name), Genshinlib.gameDir, (current: number, total: number, difference: number) => {
LauncherUI.updateProgressBar('Unpacking', current, total, difference);
LauncherUI.updateProgressBar(i18n.translate('Unpack'), current, total, difference);
}).then(() => {
fs.unlinkSync(path.join(Genshinlib.launcherDir, voicePack.name));