diff --git a/Dockerfile b/Dockerfile index 18291fb5..c8522704 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ ARG wg_port="51820" # Following ENV variables are changable on container runtime because /entrypoint.sh handles that. See compose.yaml for more info. ENV TZ="Europe/Amsterdam" ENV global_dns="1.1.1.1" + ENV enable="none" + ENV isolate="none" ENV public_ip="0.0.0.0" @@ -55,4 +57,5 @@ COPY entrypoint.sh /entrypoint.sh # Exposing the default WireGuard Dashboard port for web access. EXPOSE 10086 + ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index a75ef452..00000000 --- a/compose.yaml +++ /dev/null @@ -1,26 +0,0 @@ -services: - - wireguard-dashboard: - build: ./ - container_name: wiregate - cap_add: - - NET_ADMIN - - SYS_MODULE - restart: unless-stopped - environment: - - wg_net=10.0.0.1/24 - - wg_port=51820 - volumes: - - wgd_configs:/etc/wireguard - - wgd_app:/opt/wireguarddashboard/src - ports: - - 10086:10086/tcp - - 51820:51820/udp - sysctls: - - net.ipv4.ip_forward=1 - - net.ipv4.conf.all.src_valid_mark=1 - - -volumes: - wgd_configs: - wgd_app: \ No newline at end of file diff --git a/docker/Docker-explain.md b/docker/Docker-explain.md deleted file mode 100644 index dd7bfe8a..00000000 --- a/docker/Docker-explain.md +++ /dev/null @@ -1,82 +0,0 @@ -# WG-Dashboard Docker Explanation: - -Author: DaanSelen
- -This document delves into how the WG-Dashboard Docker container has been built.
-Of course there are two stages, one before run-time and one at/after run-time.
-The `Dockerfile` describes how the container image is made, and the `entrypoint.sh` is executed after running the container.
-In this example, WireGuard is integrated into the container itself, so it should be a run-and-go.
-For more details on the source-code specific to this Docker image, refer to the source files, they have lots of comments. - -I have tried to embed some new features such as `isolated_peers` and interface startup on container-start (through `enable_wg0`). - -WG-Dashboard Logo - -## Getting the container running: - -To get the container running you either pull the image from the repository, at the moment: `repo.nerthus.nl/app/wireguard-dashboard:latest`.
-From there either use the environment variables describe below as parameters or use the Docker Compose file: `compose.yaml`. - -An example of a simple command to get the container running is show below:
- -```shell -docker run -d \ - --name wireguard-dashboard \ - --restart unless-stopped \ - -e enable_wg0=true \ - -e isolated_peers=true \ - -p 10086:10086/tcp \ - -p 51820:51820/udp \ - --cap-add NET_ADMIN \ - repo.nerthus.nl/app/wireguard-dashboard:latest -``` -
-If you want to use Compose instead of a raw Docker command, refer to the example in the `compose.yaml` or the one pasted below: -

- -```yaml -services: - wireguard-dashboard: - image: repo.nerthus.nl/app/wireguard-dashboard:latest - restart: unless-stopped - container_name: wire-dash - environment: - #- tz= - #- global_dns= - - enable_wg0=true - - isolated_peers=false - #- public_ip= - ports: - - 10086:10086/tcp - - 51820:51820/udp - volumes: - - conf:/etc/wireguard - - app:/opt/wireguarddashboard/app - cap_add: - - NET_ADMIN - -volumes: - conf: - app: - -``` - -If you want to customize the yaml, make sure the core stays the same, but for example volume PATHs can be freely changed.
-This setup is just generic and will use the Docker volumes. - -## Working with the container and environment variables: - -Once the container is running, the installation process is essentially the same as running it on bare-metal.
-So go to the assign TCP port in this case HTTP, like the default 10086 one in the example and log into the WEB-GUI.
- -| Environment variable | Accepted arguments | Default value | Verbose | -| -------------- | ------- | ------- | ------- | -| tz | Europe/Amsterdam or any confirming timezone notation. | Europe/Amsterdam | Sets the timezone of the Docker container. This is to timesync the container to any other processes which would need it. | -| global_dns | Any IPv4 address, such as my personal recommendation: 9.9.9.9 (QUAD9) | 1.1.1.1 | Set the default DNS given to clients once they connect to the WireGuard tunnel (VPN). -| enable_wg0 | `true` or `false` | `false` | Enables or disables the starting of the WireGuard interface on container 'boot-up'. -| isolated_peers | `true` or `false` | `true` | For security the default is true, and it disables peers to ping or reach eachother, the WireGuard interface IS able to reach the peers (Done through `iptables`). -| public_ip | Any IPv4 (public recommended) address, such as the one returned by default | Default uses the return of `curl ifconfig.me` | To reach your VPN from outside your own network, you need WG-Dashboard to know what your public IP-address is, otherwise it will generate faulty config files for clients. - -## Closing remarks: - -For feedback please submit an issue to the repository. Or message dselen@nerthus.nl. diff --git a/docker/compose.yaml b/docker/compose.yaml new file mode 100644 index 00000000..f003d6ba --- /dev/null +++ b/docker/compose.yaml @@ -0,0 +1,23 @@ +services: + wireguard-dashboard: + image: donaldzou/wgdashboard:latest + restart: unless-stopped + container_name: wgdashboard + environment: + - tz=Europe/Amsterdam # <--- Set container timezone, default: Europe/Amsterdam. + - global_dns=9.9.9.9 # <--- Set global DNS address, default: 1.1.1.1. + #- enable= # <--- Set the interfaces that will be enabled on startup, default: 'none'. + #- isolate= # <--- Set the interfaces that will disallow peer communication, default: 'none'. + #- public_ip= # <--- Set public IP to ensure the correct one is chosen, defaulting to the IP give by ifconfig.me. + ports: + - 10086:10086/tcp + - 51820:51820/udp + volumes: + - conf:/etc/wireguard + - data:/data + cap_add: + - NET_ADMIN + +volumes: + conf: + data: diff --git a/entrypoint.sh b/entrypoint.sh index 08ed7693..537d6e35 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,8 +16,11 @@ ensure_installation() { python3 -m venv "${WGDASH}"/src/venv . "${WGDASH}/src/venv/bin/activate" - mv /usr/lib/python3.12/site-packages/psutil* "${WGDASH}"/src/venv/lib/python3.12/site-packages - mv /usr/lib/python3.12/site-packages/bcrypt* "${WGDASH}"/src/venv/lib/python3.12/site-packages + + + [ ! -d "${WGDASH}/src/venv/lib/python3.12/site-packages/psutil" ] && echo "Moving PIP dependency: psutil" && mv /usr/lib/python3.12/site-packages/psutil* "${WGDASH}"/src/venv/lib/python3.12/site-packages + [ ! -d "${WGDASH}/src/venv/lib/python3.12/site-packages/bcrypt" ] && echo "Moving PIP dependency: bcrypt" && mv /usr/lib/python3.12/site-packages/bcrypt* "${WGDASH}"/src/venv/lib/python3.12/site-packages + chmod +x "${WGDASH}"/src/wgd.sh cd "${WGDASH}"/src || exit @@ -74,6 +77,8 @@ set_envvars() { fi # Determine the public IP and update if necessary + echo "{$public_ip}" + if [ "${public_ip}" = "0.0.0.0" ]; then default_ip=$(curl -s ifconfig.me) @@ -141,7 +146,12 @@ start_core() { echo "Found: $interface, stopping isolation checking." break else - if [ -f "/etc/wireguard/${interface}.conf" ]; then + + if [ ! -f "/etc/wireguard/${interface}.conf" ]; then + echo "Ignoring ${interface}" + + elif [ -f "/etc/wireguard/${interface}.conf" ]; then + echo "Isolating interface:" "$interface" upblocking=$(grep -c "PostUp = iptables -I FORWARD -i ${interface} -o ${interface} -j DROP" /etc/wireguard/"${interface}".conf) @@ -161,9 +171,13 @@ start_core() { done # Removing isolation for the configurations that did not match. - for interface in "${non_isolate[@]}"; do - if [ -f "/etc/wireguard/${interface}.conf" ]; then + for interface in "${non_isolate[@]}"; do + if [ ! -f "/etc/wireguard/${interface}.conf" ]; then + echo "Ignoring ${interface}" + + elif [ -f "/etc/wireguard/${interface}.conf" ]; then + echo "Removing isolation, if isolation is present for:" "$interface" sed -i "/PostUp = iptables -I FORWARD -i ${interface} -o ${interface} -j DROP/d" /etc/wireguard/"${interface}".conf @@ -174,37 +188,6 @@ start_core() { done - # The following section takes care of enabling wireguard interfaces on startup. Using arrays and given arguments. - # - # WILL BE REMOVED IN FUTURE WHEN WGDASHBOARD ITSELF SUPPORTS THIS!! - # - - IFS=',' read -r -a enable_array <<< "${enable}" - - for interface in "${enable_array[@]}"; do - - if [ "$interface" = "none" ]; then - echo "Found: $interface, stopping enabling checking." - break - else - echo "Enabling interface:" "$interface" - - local fileperms - fileperms=$(stat -c "%a" /etc/wireguard/"${interface}".conf) - if [ "$fileperms" -eq 644 ]; then - echo "Configuration is world accessible, adjusting." - chmod 600 "/etc/wireguard/${interface}.conf" - fi - - if [ -f "/etc/wireguard/${interface}.conf" ]; then - wg-quick up "$interface" - else - echo "No corresponding configuration file found for $interface doing nothing." - fi - - fi - - done } ensure_blocking() { diff --git a/src/static/locale/active_languages.json b/src/static/locale/active_languages.json index 0ac71c79..644a3ebd 100644 --- a/src/static/locale/active_languages.json +++ b/src/static/locale/active_languages.json @@ -1,42 +1,47 @@ [ + { + "lang_id": "cs", + "lang_name": "Czech", + "lang_name_localized": "Česky" + }, + { + "lang_id": "de-de", + "lang_name": "German", + "lang_name_localized": "Deutsch" + }, { "lang_id": "en", "lang_name": "English", "lang_name_localized": "English" }, { - "lang_id": "zh-CN", - "lang_name": "Chinese (Simplified)", - "lang_name_localized": "中文(简体)" - }, - { - "lang_id": "zh-HK", - "lang_name": "Chinese (Traditional)", - "lang_name_localized": "中文(繁體)" - }, - { - "lang_id": "uk", - "lang_name": "Ukrainian", - "lang_name_localized": "Українська" - }, - { - "lang_id": "de", - "lang_name": "German", - "lang_name_localized": "Deutsch" - }, - { - "lang_id": "it-IT", + "lang_id": "it-it", "lang_name": "Italian", "lang_name_localized": "Italiano" }, + { + "lang_id": "nl-nl", + "lang_name": "Dutch", + "lang_name_localized": "Nederlands" + }, { "lang_id": "ru", "lang_name": "Russian", "lang_name_localized": "Русский" }, { - "lang_id": "cs", - "lang_name": "Czech", - "lang_name_localized": "Česky" + "lang_id": "uk", + "lang_name": "Ukrainian", + "lang_name_localized": "Українська" + }, + { + "lang_id": "zh-cn", + "lang_name": "Chinese (Simplified)", + "lang_name_localized": "中文(简体)" + }, + { + "lang_id": "zh-hk", + "lang_name": "Chinese (Traditional)", + "lang_name_localized": "中文(繁體)" } ] diff --git a/src/static/locale/de.json b/src/static/locale/de-de.json similarity index 100% rename from src/static/locale/de.json rename to src/static/locale/de-de.json diff --git a/src/static/locale/it-IT.json b/src/static/locale/it-it.json similarity index 100% rename from src/static/locale/it-IT.json rename to src/static/locale/it-it.json diff --git a/src/static/locale/nl-nl.json b/src/static/locale/nl-nl.json new file mode 100644 index 00000000..1dd0f908 --- /dev/null +++ b/src/static/locale/nl-nl.json @@ -0,0 +1,311 @@ +{ + "Welcome to": "Welkom bij", + "Username": "Gebruikersnaam", + "Password": "Wachtwoord", + "OTP from your authenticator": "OTP van uw authenticator", + "Sign In": "Inloggen", + "Signing In...": "Inloggen...", + "Access Remote Server": "Toegang tot Remote Server", + "Server": "Server", + "Click": "Klik", + "Pinging...": "Pingen...", + "to add your server": "om uw server toe te voegen", + "Server List": "Serverlijst", + "Sorry, your username or password is incorrect.": "Sorry, uw gebruikersnaam of wachtwoord is onjuist.", + "Home": "Startpagina", + "Settings": "Instellingen", + "Tools": "Hulpmiddelen", + "Sign Out": "Uitloggen", + "Checking for update...": "Zoeken naar updates...", + "You're on the latest version": "U gebruikt de laatste versie", + "WireGuard Configurations": "WireGuard Configuraties", + "You don't have any WireGuard configurations yet. Please check the configuration folder or change it in Settings. By default the folder is /etc/wireguard.": "U heeft nog geen WireGuard configuraties. Controleer de configuratiemap of wijzig deze in de instellingen. Standaard is de map /etc/wireguard.", + "Configuration": "Configuratie", + "Configurations": "Configuraties", + "Peers Default Settings": "Standaardinstellingen voor Peers", + "Dashboard Theme": "Dashboard Thema", + "Light": "Licht", + "Dark": "Donker", + "This will be changed globally, and will be apply to all peer's QR code and configuration file.": "Dit wordt globaal gewijzigd en is van toepassing op alle QR-codes van peers en configuratiebestanden.", + "WireGuard Configurations Settings": "WireGuard Configuratie-instellingen", + "Configurations Directory": "Configuratiemap", + "Remember to remove / at the end of your path. e.g /etc/wireguard": "Vergeet niet de / aan het einde van uw pad te verwijderen. Bijv. /etc/wireguard", + "WGDashboard Account Settings": "WGDashboard Accountinstellingen", + "Current Password": "Huidig Wachtwoord", + "New Password": "Nieuw Wachtwoord", + "Repeat New Password": "Herhaal Nieuw Wachtwoord", + "Update Password": "Wachtwoord bijwerken", + "Multi-Factor Authentication (MFA)": "Multi-Factor Authenticatie (MFA)", + "Reset": "Resetten", + "Setup": "Instellen", + "API Keys": "API-sleutels", + "API Key": "API-sleutel", + "Key": "Sleutel", + "Enabled": "Ingeschakeld", + "Disabled": "Uitgeschakeld", + "No WGDashboard API Key": "Geen WGDashboard API-sleutel", + "Expire At": "Vervalt Op", + "Are you sure to delete this API key?": "Weet u zeker dat u deze API-sleutel wilt verwijderen?", + "Create API Key": "API-sleutel maken", + "When should this API Key expire?": "Wanneer moet deze API-sleutel vervallen?", + "Never Expire": "Nooit vervallen", + "Don't think that's a good idea": "Dit is geen goed idee, denk ik", + "Creating...": "Maken...", + "Create": "Maken", + "Status": "Status", + "On": "Aan", + "Off": "Uit", + "Turning On...": "Aanzetten...", + "Turning Off...": "Uitzetten...", + "Address": "Adres", + "Listen Port": "Luisterpoort", + "Public Key": "Public key", + "Connected Peers": "Verbonden Peers", + "Total Usage": "Totaal Gebruik", + "Total Received": "Totaal Ontvangen", + "Total Sent": "Totaal Verzonden", + "Peers Data Usage": "Data Gebruik van Peers", + "Real Time Received Data Usage": "Realtime Ontvangen Data Gebruik", + "Real Time Sent Data Usage": "Realtime Verzonden Data Gebruik", + "Peer": "Peer", + "Peers": "Peers", + "Peer Settings": "Peer Instellingen", + "Download All": "Alles Downloaden", + "Search Peers...": "Zoek Peers...", + "Display": "Weergave", + "Sort By": "Sorteren op", + "Refresh Interval": "Vernieuwingsinterval", + "Name": "Naam", + "Allowed IPs": "Allowed IPs", + "Restricted": "Beperkt", + "(.*) Seconds": "$1 Seconden", + "(.*) Minutes": "$1 Minuten", + "Configuration Settings": "Configuratie-instellingen", + "Peer Jobs": "Peer Taken", + "Active Jobs": "Actieve Taken", + "All Active Jobs": "Alle Actieve Taken", + "Logs": "Logboeken", + "Private Key": "Private Key", + "(Required for QR Code and Download)": "(Vereist voor QR-code en Download)", + "(Required)": "(Vereist)", + "Endpoint Allowed IPs": "Allowed-IPs voor Eindpunt", + "DNS": "DNS", + "Optional Settings": "Optionele Instellingen", + "Pre-Shared Key": "Pre-Shared Key", + "MTU": "MTU", + "Persistent Keepalive": "Persistente Keepalive", + "Reset Data Usage": "Reset Datagebruik", + "Total": "Totaal", + "Sent": "Verzonden", + "Received": "Ontvangen", + "Revert": "Herstellen", + "Save Peer": "Peer Opslaan", + "QR Code": "QR-code", + "Schedule Jobs": "Taken Inplannen", + "Job": "Taak", + "Job ID": "Taak ID", + "Unsaved Job": "Niet Opgeslagen Taak", + "This peer does not have any job yet.": "Deze peer heeft nog geen taak.", + "if": "als", + "is": "is", + "then": "dan", + "larger than": "groter dan", + "Date": "Datum", + "Restrict Peer": "Peer Beperken", + "Delete Peer": "Peer Verwijderen", + "Edit": "Bewerken", + "Delete": "Verwijderen", + "Deleting...": "Aan het verwijderen", + "Cancel": "Annuleren", + "Save": "Opslaan", + "No active job at the moment.": "Momenteel geen actieve taak.", + "Jobs Logs": "Taaklogboeken", + "Updated at": "Bijgewerkt op", + "Refresh": "Vernieuwen", + "Filter": "Filteren", + "Success": "Succesvol", + "Failed": "Mislukt", + "Log ID": "Log-ID", + "Message": "Bericht", + "Share Peer": "Deel Peer", + "Currently the peer is not sharing": "De peer deelt momenteel niet", + "Sharing...": "Delen aan het starten...", + "Start Sharing": "Start delen", + "Stop Sharing...": "Delen aan het stoppen...", + "Stop Sharing": "Stop met delen", + "Access Restricted": "Toegang Beperkt", + "Restrict Access": "Beperk toegang", + "Restricting...": "Aan het beperken...", + "Allow Access": "Toegang toestaan", + "Allowing Access...": "Toegang toe aan het staan...", + "Download & QR Code is not available due to no private key set for this peer": "Download & QR-code zijn niet beschikbaar omdat er geen privésleutel voor deze peer is ingesteld", + "Add Peers": "Peers toevoegen", + "Bulk Add": "Bulk toevoegen", + "By adding peers by bulk, each peer's name will be auto generated, and Allowed IP will be assign to the next available IP.": "Bij het bulk toevoegen wordt de naam van elke peer automatisch gegenereerd en wordt de Allowed-IPs aan het volgende beschikbare IP toegewezen.", + "How many peers you want to add?": "Hoeveel peers wil je toevoegen?", + "You can add up to (.*) peers": "Je kunt tot $1 peers toevoegen", + "Use your own Private and Public Key": "Gebruik je eigen private- en public key", + "Enter IP Address/CIDR": "Voer IP-adres/CIDR in", + "IP Address/CIDR": "IP-adres/CIDR", + "or": "of", + "Pick Available IP": "Kies beschikbare IP", + "No available IP containing": "Geen beschikbare IP bevat", + "Add": "Toevoegen", + "Adding...": "Toevoegen...", + "Failed to check available update": "Controlen van beschikbare updates mislukt", + "Nice to meet you!": "Leuk je te ontmoeten!", + "Please fill in the following fields to finish setup": "Vul de volgende velden in om de installatie te voltooien", + "Create an account": "Maak een account aan", + "Enter an username you like": "Voer een gebruikersnaam in die je leuk vindt", + "Enter a password": "Voer een wachtwoord in", + "\\(At least 8 characters and make sure is strong enough!\\)": "(Minimaal 8 tekens en zorg ervoor dat het sterk genoeg is!)", + "Confirm password": "Bevestig wachtwoord", + "Next": "Volgende", + "Saving\\.\\.\\.": "Opslaan...", + "1\\. Please scan the following QR Code to generate TOTP with your choice of authenticator": "1. Scan de volgende QR-code om TOTP te genereren met je keuze van authenticator", + "Or you can click the link below:": "Of je kunt de onderstaande link klikken:", + "2\\. Enter the TOTP generated by your authenticator to verify": "2. Voer de door je authenticator gegenereerde TOTP in om te verifiëren", + "TOTP verified!": "TOTP succesvol geverifieerd!", + "I don't need MFA": "Ik heb geen MFA nodig", + "Complete": "Voltooien", + "(v[0-9.]{1,}) is now available for update!": "Versie $1 is nu beschikbaar voor update!", + "Current Version:": "Huidige versie:", + "Oh no\\.\\.\\. This link is either expired or invalid\\.": "Oh nee... Deze link is ofwel verlopen of ongeldig.", + "Scan QR Code with the WireGuard App to add peer": "Scan de QR-code met de WireGuard-app om peer toe te voegen", + "or click the button below to download the ": "of klik op de knop hieronder om de", + " file": " bestand te downloaden", + "FROM ": "VAN", + "(.*) is on": "$1 is ingeschakeld", + "(.*) is off": "$1 is uitgeschakeld", + "Allowed IPs is invalid": "Toegestane IP's zijn ongeldig", + "Peer created successfully": "Peer succesvol aangemaakt", + "Please fill in all required box": "Vul alle vereiste velden in", + "Please specify amount of peers you want to add": "Geef het aantal peers op dat je wilt toevoegen", + "No more available IP can assign": "Er kunnen geen extra beschikbare IP's worden toegewezen", + "The maximum number of peers can add is (.*)": "Het maximale aantal peers dat kan worden toegevoegd is $1", + "Generating key pairs by bulk failed": "Het massaal genereren van sleutelpaar is mislukt", + "Failed to add peers in bulk": "Massaal toevoegen van peers mislukt", + "This peer already exist": "Deze peer bestaat al", + "This IP is not available: (.*)": "Deze IP is niet beschikbaar: $1", + "Configuration does not exist": "Configuratie bestaat niet", + "Peer does not exist": "Peer bestaat niet", + "Please provide a valid configuration name": "Geef een geldige configuratienaam op", + "Peer saved": "Peer opgeslagen", + "Allowed IPs already taken by another peer": "Toegestane IP's zijn al in gebruik door een andere peer", + "Endpoint Allowed IPs format is incorrect": "Het formaat van toegestane IP's van het eindpunt is onjuist", + "DNS format is incorrect": "Het DNS-formaat is onjuist", + "MTU format is not correct": "Het MTU-formaat is onjuist", + "Persistent Keepalive format is not correct": "Het formaat van Persistent Keepalive is onjuist", + "Private key does not match with the public key": "Het privésleutel komt niet overeen met de publieke sleutel", + "Update peer failed when updating Pre-Shared Key": "Fout bij het bijwerken van de peer tijdens het bijwerken van de Pre-Shared Key", + "Update peer failed when updating Allowed IPs": "Fout bij het bijwerken van de peer tijdens het bijwerken van toegestane IP's", + "Update peer failed when saving the configuration": "Fout bij het opslaan van de peer-configuratie", + "Peer data usage reset successfully": "Peer-gegevensverbruik succesvol gereset", + "Peer download started": "Peer-download gestart", + "Please specify one or more peers": "Geef een of meer peers op", + "Share link failed to create. Reason: (.*)": "De gedeelde link kon niet worden aangemaakt. Reden: $1", + "Link expire date updated": "Vervaldatum van de link bijgewerkt", + "Link expire date failed to update. Reason: (.*)": "Vervaldatum van de link kon niet worden bijgewerkt. Reden: $1", + "Peer job saved": "Peer-taak opgeslagen", + "Please specify job": "Geef een taak op", + "Please specify peer and configuration": "Geef peer en configuratie op", + "Peer job deleted": "Peer-taak verwijderd", + "API Keys function is successfully enabled": "API-sleutelfunctie is succesvol ingeschakeld", + "API Keys function is successfully disabled": "API-sleutelfunctie is succesvol uitgeschakeld", + "API Keys function is failed to enable": "API-sleutelfunctie kon niet worden ingeschakeld", + "API Keys function is failed to disable": "API-sleutelfunctie kon niet worden uitgeschakeld", + "WGDashboard API Keys function is disabled": "De API-sleutelfunctie in WGDashboard is uitgeschakeld", + "WireGuard configuration path saved": "WireGuard-configuratiepad opgeslagen", + "API Key deleted": "API-sleutel verwijderd", + "API Key created": "API-sleutel aangemaakt", + "Sign in session ended, please sign in again": "Aanmeldsessie beëindigd, meld je opnieuw aan", + "Please specify an IP Address (v4/v6)": "Geef een IP-adres op (v4/v6)", + "Please provide ipAddress and count": "Geef het IP-adres en het aantal op", + "Please provide ipAddress": "Geef een IP-adres op", + "Dashboard Language": "Dashboard-taal", + "Dashboard language update failed": "Bijwerken van dashboard-taal mislukt", + "Peer Remote Endpoint": "Peer Remote Endpunt", + "New Configuration": "Nieuwe configuratie", + "Configuration Name": "Configuratienaam", + "Configuration name is invalid. Possible reasons:": "Configuratienaam is ongeldig. Mogelijke redenen:", + "Configuration name already exist.": "Configuratienaam bestaat al.", + "Configuration name can only contain 15 lower/uppercase alphabet, numbers, underscore, equal sign, plus sign, period and hyphen.": "De configuratienaam mag alleen uit 15 tekens bestaan, inclusief hoofd-/kleine letters, cijfers, onderstrepingsteken, gelijkteken, plusteken, punt en koppelteken.", + "Invalid Port": "Ongeldige poort", + "Save Configuration": "Configuratie opslaan", + "IP Address/CIDR is invalid": "IP-adres/CIDR is ongeldig", + "IP Address": "IP-adres", + "Enter IP Address / Hostname": "Voer IP-adres / Hostnaam in", + "IP Address / Hostname": "IP-adres / Hostnaam", + "Count": "Aantal", + "Geolocation": "Geolocatie", + "Is Alive": "Is actief", + "Average / Min / Max Round Trip Time": "Gemiddelde / Min / Max Round Trip Time", + "Sent / Received / Lost Package": "Verzonden / Ontvangen / Verloren pakket", + "Manual restart of WGDashboard is needed to apply changes on IP Address and Listen Port": "Handmatig opnieuw opstarten van WGDashboard is nodig om wijzigingen in IP-adres en luisterpoort toe te passen", + "Restore Configuration": "Herstel configuratie", + "Step (.*)": "Stap $1", + "Select a backup you want to restore": "Selecteer een back-up die je wilt herstellen", + "Click to change a backup": "Klik om een back-up te wijzigen", + "Selected Backup": "Geselecteerde back-up", + "You don't have any configuration to restore": "Je hebt geen configuratie om te herstellen", + "Help": "Help", + "Backup": "Back-up", + "([0-9].*) Backups?": "$1 Back-ups?", + "Yes": "Ja", + "No": "Nee", + "Backup not selected": "Geen back-up geselecteerd", + "Confirm & edit restore information": "Bevestigen & herstelinformatie bewerken", + "(.*) Available IP Address": "$1 Beschikbaar IP-adres", + "Database File": "Databestand", + "Contain": "Bevat", + "Restricted Peers?": "Beperkte Peers?", + "Restore": "Herstellen", + "Restoring": "Herstellen...", + "WGDashboard Settings": "WGDashboard Instellingen", + "Peers Settings": "Peers Instellingen", + "WireGuard Configuration Settings": "WireGuard Configuratie Instellingen", + "Appearance": "Weergave", + "Theme": "Thema", + "Language": "Taal", + "Account Settings": "Account Instellingen", + "Peer Default Settings": "Standaard Peer Instellingen", + "Toggle When Start Up": "Wisselen bij opstarten", + "Other Settings": "Andere Instellingen", + "Select Peers": "Selecteer Peers", + "Backup & Restore": "Back-up & Herstellen", + "Delete Configuration": "Configuratie Verwijderen", + "Create Backup": "Maak een Back-up", + "No backup yet, click the button above to create backup.": "Nog geen back-up, klik op de knop hierboven om een back-up te maken.", + "Are you sure to delete this backup?": "Weet je zeker dat je deze back-up wilt verwijderen?", + "Are you sure to restore this backup?": "Weet je zeker dat je deze back-up wilt herstellen?", + "Backup Date": "Back-up Datum", + "File": "Bestand", + "Are you sure to delete this configuration?": "Weet je zeker dat je deze configuratie wilt verwijderen?", + "Once you deleted this configuration:": "Zodra je deze configuratie hebt verwijderd:", + "All connected peers will get disconnected": "Alle verbonden peers worden losgekoppeld", + "Both configuration file (.conf) and database table related to this configuration will get deleted": "Zowel het configuratiebestand (.conf) als de databasetabel die aan deze configuratie is gekoppeld, worden verwijderd", + "Checking backups...": "Back-ups worden gecontroleerd...", + "This configuration have ([0-9].*) backups": "Deze configuratie heeft $1 back-ups", + "This configuration have no backup": "Deze configuratie heeft geen back-up", + "If you're sure, please type in the configuration name below and click Delete": "Als je zeker bent, typ dan de configuratienaam hieronder in en klik op Verwijderen", + "Select All": "Selecteer alles", + "Clear Selection": "Selectie wissen", + "([0-9].*) Peers?": "$1 Peers?", + "Downloading": "Bezig met downloaden", + "Download Finished": "Download voltooid", + "Done": "Klaar", + "Are you sure to delete": "Weet je zeker dat je wilt verwijderen?", + "Are you sure to delete this peer?": "Weet je zeker dat je deze peer wilt verwijderen?", + "Configuration deleted": "Configuratie verwijderd", + "Configuration saved": "Configuratie opgeslagen", + "WGDashboard language update failed": "Bijwerken van de WGDashboard-taal mislukt", + "Configuration restored": "Configuratie hersteld", + "Allowed IP already taken by another peer": "Toegestane IP is al in gebruik door een andere peer", + "Failed to allow access of peer (.*)": "Toegang voor peer $1 niet toegestaan", + "Failed to save configuration through WireGuard": "Configuratie opslaan via WireGuard mislukt", + "Allow access successfully": "Toegang succesvol toegestaan", + "Deleted ([0-9]{1,}) peer(s)": "$1 peer(s) verwijderd", + "Deleted ([0-9]{1,}) peer(s) successfully. Failed to delete ([0-9]{1,}) peer(s)": "$1 peer(s) succesvol verwijderd. Het verwijderen van $2 peer(s) is mislukt", + "Restricted ([0-9]{1,}) peer(s)": "$1 peer(s) beperkt", + "Restricted ([0-9]{1,}) peer(s) successfully. Failed to restrict ([0-9]{1,}) peer(s)": "$1 peer(s) succesvol beperkt. Het beperken van $2 peer(s) is mislukt" +} \ No newline at end of file diff --git a/src/static/locale/zh-CN.json b/src/static/locale/zh-cn.json similarity index 100% rename from src/static/locale/zh-CN.json rename to src/static/locale/zh-cn.json diff --git a/src/static/locale/zh-HK.json b/src/static/locale/zh-hk.json similarity index 100% rename from src/static/locale/zh-HK.json rename to src/static/locale/zh-hk.json