diff --git a/src-tauri/lang/nl.json b/src-tauri/lang/nl.json new file mode 100644 index 0000000..09950e1 --- /dev/null +++ b/src-tauri/lang/nl.json @@ -0,0 +1,80 @@ +{ + "lang_name": "Nederlands", + "main": { + "title": "Cultivation", + "launch_button": "Start", + "gc_enable": "Verbind Met Grasscutter", + "https_enable": "Gebruik HTTPS", + "ip_placeholder": "Server Address...", + "port_placeholder": "Poort...", + "files_downloading": "Bestanden Aan Downloaden: ", + "files_extracting": "Bestanden Uitpakken: " + }, + "options": { + "enabled": "Ingeschakeld", + "disabled": "Uitgeschakeld", + "game_path": "Spel Installatie Pad Instellen", + "game_executable": "Stel De Exe Van Het Spel In", + "recover_metadata": "Noodherstel Van De Metadata", + "grasscutter_jar": "Stel De Grasscutter JAR In", + "toggle_encryption": "Versleuteling Inschakelen", + "install_certificate": "Proxy-certificaat installeren", + "java_path": "Aangepast Java-pad Instellen", + "grasscutter_with_game": "Start Automatisch Grasscutter Met Spel", + "language": "Selecteer Taal", + "background": "Aangepaste Achtergrond Instellen (link of afbeeldingsbestand)", + "theme": "Thema instellen", + "patch_metadata": "Metadata Automatisch Bijwerken", + "use_proxy": "Gebruik Interne Proxy" + }, + "downloads": { + "grasscutter_stable_data": "Download Stabiele Gegevens Van Grasscutter", + "grasscutter_latest_data": "Download De Nieuwste Gegevens Van Grasscutter", + "grasscutter_stable_data_update": "Stabiele gegevens Van Grasscutter bijwerken", + "grasscutter_latest_data_update": "Nieuwste gegevens Van Grasscutter bijwerken", + "grasscutter_stable": "Download Stabiele Versie Van Grasscutter", + "grasscutter_latest": "Download De Nieuwste Versie Van Grasscutter", + "grasscutter_stable_update": "Update Grasscutter Naar De Stabiele Versie", + "grasscutter_latest_update": "Update Grasscutter Naar De Nieuwste Versie", + "resources": "Download Grasscutter bronnen", + "game": "Download Spel" + }, + "download_status": { + "downloading": "Aan Het Downloading", + "extracting": "Uitpakken", + "error": "Fout", + "finished": "Voltooid", + "stopped": "Gestopt" + }, + "components": { + "select_file": "Select file or folder...", + "select_folder": "Select folder...", + "download": "Download", + "install": "Install" + }, + "news": { + "latest_commits": "Recente Opdrachten", + "latest_version": "Nieuwste Versie" + }, + "help": { + "port_help_text": "Zorg ervoor dat dit de Dispatch server poort is, niet de Game server poort. Dit is bijna altijd '443'.", + "game_help_text": "U hoeft geen aparte kopie te gebruiken om met Grasscutter te spelen. Dit is voor downgraden naar 2.6 of als u het spel niet geinstalleerd heeft.", + "gc_stable_jar": "Download de huidige stabiele Grasscutter build, die jar file en data bestanden bevat.", + "gc_dev_jar": "Download de laatste ontwikkeling Grasscutter build, die jar file en data bestanden bevat.", + "gc_stable_data": "Download de huidige stabiele versie van de Grasscutter data bestanden, die niet met een jar file komen. Dit is handig voor het bijwerken.", + "gc_dev_data": "Download de nieuwste versie van de Grasscutter data bestanden, die niet met een jar file komen. Dit is handig voor het bijwerken.", + "encryption": "Dit wordt meestal uitgeschakeld.", + "resources": "Deze zijn ook nodig om een Grasscutter server te draaien. Deze knop zal grijs zijn als u een bestaande resources map heeft met inhoud erin", + "emergency_metadata": "Voor het geval er iets fout is gegaan, herstel uw metadata naar de laatste offici�le versies metadata.", + "use_proxy": "Gebruik de Cultivation interne proxy. U zou dit ingeschakeld moeten hebben, tenzij u iets als Fiddler gebruikt", + "patch_metadata": "Patch en unpatch je spel metadata automatisch. Tenzij je met oude/niet-offici�le versies speelt, of je hebt je metadata handmatig gepatcht, zou dit ingeschakeld moeten zijn." + }, + "swag": { + "akebi_name": "Akebi", + "migoto_name": "Migoto", + "reshade_name": "Reshade", + "akebi": "Stel Akebi Exe Bestand In", + "migoto": "Stel 3DMigoto Exe Bestand In", + "reshade": "Stel Reshade Injector In" + } +} diff --git a/src/utils/download.ts b/src/utils/download.ts index 2784bf5..87e6495 100644 --- a/src/utils/download.ts +++ b/src/utils/download.ts @@ -77,17 +77,20 @@ export default class DownloadHandler { // Extraction events listen('extract_start', ({ payload }) => { - // Find the download that is no extracting and set it's status as such - // @ts-expect-error Too lazy to make an interface for payloads rn - const index = this.downloads.findIndex((download) => download.path === payload.file) + // Find the download that is extracting and set it's status as such + const index = this.downloads.findIndex((download) => download.path === payload) this.downloads[index].status = 'extracting' }) listen('extract_end', ({ payload }) => { - console.log(payload) - // Find the download that is no extracting and set it's status as such - // @ts-expect-error Too lazy to make an interface for payloads rn - const index = this.downloads.findIndex((download) => download.path === payload.file) + // @ts-expect-error shut up typescript + const obj: { + file: string + new_folder: string + } = payload + + // Find the download that is not extracting and set it's status as such + const index = this.downloads.findIndex((download) => download.path === obj.file || obj.new_folder) this.downloads[index].status = 'finished' }) }