mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
fix languages list
This commit is contained in:
parent
0fc48e8302
commit
e4d70f4e02
@ -499,6 +499,10 @@ async function getLanguages() {
|
||||
const languageFiles = (await filesystem.readDirectory(`${NL_CWD}/languages`)).filter(file => file.entry.endsWith('.json'))
|
||||
const config = await getCfg()
|
||||
|
||||
// Clear language options
|
||||
const languageSelect = document.querySelector('#languageSelect')
|
||||
languageSelect.innerHTML = ''
|
||||
|
||||
// Load all languages as options
|
||||
for (const file of languageFiles) {
|
||||
const fullLanguageName = JSON.parse(await filesystem.readFile(`${NL_CWD}/languages/${file.entry}`)).fullLangName
|
||||
|
@ -11,4 +11,7 @@ set GRASSCUTTER_JAR=%GRASSCUTTER_JAR:"=%
|
||||
|
||||
echo Starting local Grasscutter server...
|
||||
|
||||
:: Change dir to server directory
|
||||
|
||||
|
||||
start /b java -jar %GRASSCUTTER_JAR%
|
Loading…
Reference in New Issue
Block a user