data file options and translations

This commit is contained in:
SpikeHD 2022-05-07 20:13:54 -07:00
parent 5f81ced09f
commit 376171b2cf
3 changed files with 16 additions and 3 deletions

View File

@ -28,6 +28,7 @@
"enableServerLauncherSubtitle": "Enable to server launcher tile for launching a local Grasscutter instance.",
"httpsOption": "Use HTTPS",
"httpsSubtitle": "Choose between using HTTPS or HTTP.",
"debugOption": "Debugging",
"introSen1": "Looks like this is your first time opening GrassClipper!",
"introSen2": "First of all, welcome, happy to see you here! :)",
@ -74,6 +75,8 @@
"devSubtitle": "Install Grasscutter development branch. This build sometimes has bugs, and is frequently updated. Use at your own risk.",
"downloadResources": "Download Grasscutter Resources",
"resourceSubtitle": "Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally.",
"downloadData": "Download Grasscutter Data",
"dataSubtitle": "Downloads Grasscutter data files, such as keys, spawns, and other vital files.",
"gcScriptRunning": "Running...",
"stableInstall": "Download",

View File

@ -185,10 +185,10 @@
<div class="downloadRow">
<div class="downloadSection">
<span class="downloadLabel" id="downloadData">Download Data Files</span>
<button class="smolBtn" onclick="downloadDataFiles()" id="resourceInstall">Download</button>
<button class="smolBtn" onclick="downloadDataFiles()" id="dataInstall">Download</button>
</div>
<span class="downloadSubtitle" id="resourceSubtitle">
Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally.
<span class="downloadSubtitle" id="dataSubtitle">
Downloads Grasscutter data files, such as keys, spawns, and other vital files.
</span>
</div>
</div>
@ -262,6 +262,13 @@
Choose between using HTTPS or HTTP.
</span>
</div>
<div class="settingsRow">
<div class="settingSection">
<span class="settingLabel", id="debugTitle">Debugging</span>
<input type="checkbox" id="debugOption" onchange="toggleDebugging()" />
</select>
</div>
</div>
</div>
</div>

View File

@ -58,6 +58,7 @@ async function doTranslation() {
set('serverSubtitle', 'enableServerLauncherSubtitle')
set('httpsTitle', 'httpsOption')
set('httpsSubtitle', 'httpsSubtitle')
set('debugTitle', 'debugOption')
// Intro popup
const popup = document.getElementById('firstTimeNotice')
@ -100,6 +101,8 @@ async function doTranslation() {
set('stableSubtitle', 'stableSubtitle')
set('downloadDev', 'downloadDev')
set('devSubtitle', 'devSubtitle')
set('dataSubtitle', 'dataSubtitle')
set('downloadData', 'downloadData')
set('downloadResources', 'downloadResources')
set('resourceSubtitle', 'resourceSubtitle')
set('stableInstall', 'stableInstall')