From 160ce3338de30a2b6f16912d0eeb12e3dac5a531 Mon Sep 17 00:00:00 2001 From: Daan Date: Thu, 7 Nov 2024 11:25:05 +0100 Subject: [PATCH 1/2] Changed some file-names --- Dockerfile | 68 +++++--- compose.yaml | 26 --- docker/Docker-explain.md | 82 --------- docker/compose.yaml | 23 +++ entrypoint.sh | 211 ++++++++++++++++++++++++ src/static/locale/active_languages.json | 55 +++--- src/static/locale/nl-NL.json | 172 +++++++++++++++++++ 7 files changed, 483 insertions(+), 154 deletions(-) delete mode 100644 compose.yaml delete mode 100644 docker/Docker-explain.md create mode 100644 docker/compose.yaml create mode 100644 entrypoint.sh create mode 100644 src/static/locale/nl-NL.json diff --git a/Dockerfile b/Dockerfile index ad73bb2..a4cb3e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,31 +1,57 @@ -# Pull from small Debian stable image. -FROM alpine:latest AS builder - +FROM alpine:latest LABEL maintainer="dselen@nerthus.nl" -WORKDIR /opt/wireguarddashboard/src +# Declaring environment variables, change Peernet to an address you like, standard is a 24 bit subnet. +ARG wg_net="10.0.0.1" +ARG wg_port="51820" -RUN apk update && \ - apk add --no-cache sudo gcc musl-dev rust cargo linux-headers +# 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 isolate="none" +ENV public_ip="0.0.0.0" -COPY ./docker/alpine/builder.sh /opt/wireguarddashboard/src/ -COPY ./docker/alpine/requirements.txt /opt/wireguarddashboard/src/ -RUN chmod u+x /opt/wireguarddashboard/src/builder.sh -RUN /opt/wireguarddashboard/src/builder.sh +# Doing package management operations, such as upgrading +RUN apk update \ + && apk add --no-cache bash git tzdata \ + iptables ip6tables openrc curl wireguard-tools \ + sudo py3-psutil py3-bcrypt \ + && apk upgrade +# Using WGDASH -- like wg_net functionally as a ARG command. But it is needed in entrypoint.sh so it needs to be exported as environment variable. +ENV WGDASH=/opt/wireguarddashboard -FROM alpine:latest -WORKDIR /opt/wireguarddashboard/src +# Removing the Linux Image package to preserve space on the image, for this reason also deleting apt lists, to be able to install packages: run apt update. -COPY ./src /opt/wireguarddashboard/src/ -COPY --from=builder /opt/wireguarddashboard/src/venv /opt/wireguarddashboard/src/venv -COPY --from=builder /opt/wireguarddashboard/src/log /opt/wireguarddashboard/src/log/ +# Doing WireGuard Dashboard installation measures. Modify the git clone command to get the preferred version, with a specific branch for example. +RUN mkdir /data \ + && mkdir /configs \ + && mkdir -p ${WGDASH}/src +COPY ./src ${WGDASH}/src -RUN apk update && \ - apk add --no-cache wireguard-tools sudo && \ - apk add --no-cache iptables ip6tables && \ - chmod u+x /opt/wireguarddashboard/src/entrypoint.sh +# Generate basic WireGuard interface. Echoing the WireGuard interface config for readability, adjust if you want it for efficiency. +# Also setting the pipefail option, verbose: https://github.com/hadolint/hadolint/wiki/DL4006. +SHELL ["/bin/bash", "-o", "pipefail", "-c"] +RUN out_adapt=$(ip -o -4 route show to default | awk '{print $NF}') \ + && echo -e "[Interface]\n\ +Address = ${wg_net}/24\n\ +PrivateKey =\n\ +PostUp = iptables -t nat -I POSTROUTING 1 -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\ +PostUp = iptables -I FORWARD -i wg0 -o wg0 -j DROP\n\ +PreDown = iptables -t nat -D POSTROUTING -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\ +PreDown = iptables -D FORWARD -i wg0 -o wg0 -j DROP\n\ +ListenPort = ${wg_port}\n\ +SaveConfig = true\n\ +DNS = ${global_dns}" > /configs/wg0.conf.template \ + && chmod 600 /configs/wg0.conf.template -HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:10086/signin || exit 1 +# Defining a way for Docker to check the health of the container. In this case: checking the gunicorn process. +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ + CMD sh -c 'pgrep gunicorn > /dev/null && pgrep tail > /dev/null' || exit 1 -ENTRYPOINT ["/opt/wireguarddashboard/src/entrypoint.sh"] \ No newline at end of file +# Copy the basic entrypoint.sh script. +COPY entrypoint.sh /entrypoint.sh + +# Exposing the default WireGuard Dashboard port for web access. +EXPOSE 10086 +ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index a75ef45..0000000 --- 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 dd7bfe8..0000000 --- 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 0000000..a1acaca --- /dev/null +++ b/docker/compose.yaml @@ -0,0 +1,23 @@ +services: + wireguard-dashboard: + image: test: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 new file mode 100644 index 0000000..5e26da2 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,211 @@ +#!/bin/bash + +echo "------------------------- START ----------------------------" +echo "Starting the WireGuard Dashboard Docker container." + +ensure_installation() { + # When using a custom directory to store the files, this part moves over and makes sure the installation continues. + echo "Quick-installing..." + + [ ! -d "/data/db" ] && echo "Creating database dir" && mkdir /data/db + ln -s /data/db "${WGDASH}/src/db" + + [ ! -f "/data/wg-dashboard.ini" ] && echo "Creating wg-dashboard.ini file" && touch /data/wg-dashboard.ini + ln -s /data/wg-dashboard.ini "${WGDASH}/src/wg-dashboard.ini" + + python3 -m venv "${WGDASH}"/src/venv + . "${WGDASH}/src/venv/bin/activate" + + + [ ! -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 + ./wgd.sh install + + echo "Looks like the installation succeeded." + + # This first step is to ensure the wg0.conf file exists, and if not, then its copied over from the ephemeral container storage. + # This is done so WGDashboard it works out of the box + + if [ ! -f "/etc/wireguard/wg0.conf" ]; then + echo "Standard wg0 Configuration file not found, grabbing template." + cp -a "/configs/wg0.conf.template" "/etc/wireguard/wg0.conf" + + echo "Setting a secure private key." # SORRY 4 BE4 - Daan + + local privateKey + privateKey=$(wg genkey) + sed -i "s|^PrivateKey *=.*$|PrivateKey = ${privateKey}|g" /etc/wireguard/wg0.conf + + echo "Done setting template." + else + echo "Existing wg0 configuration file found, using that." + fi +} + +set_envvars() { + printf "\n------------- SETTING ENVIRONMENT VARIABLES ----------------\n" + + # Path to the configuration file (exists because of previous function). + local config_file="/opt/wireguarddashboard/src/wg-dashboard.ini" + + # Check if the file is empty + if [ ! -s "$config_file" ]; then + echo "Config file is empty. Creating [Peers] section." + + # Create [Peers] section with initial values + { + echo "[Peers]" + echo "remote_endpoint = ${public_ip}" + echo "peer_global_dns = ${global_dns}" + } > "$config_file" + + else + echo "Config file is not empty, enforcing environment variables." + + # Check and update the DNS if it has changed + current_dns=$(grep "peer_global_dns = " "$config_file" | awk '{print $NF}') + if [ "${global_dns}" != "$current_dns" ]; then + echo "Changing default DNS." + sed -i "s/^peer_global_dns = .*/peer_global_dns = ${global_dns}/" "$config_file" + else + echo "DNS is set correctly." + 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) + + echo "Trying to fetch the Public-IP using ifconfig.me: ${default_ip}" + sed -i "s/^remote_endpoint = .*/remote_endpoint = ${default_ip}/" "$config_file" + else + current_ip=$(grep "remote_endpoint = " "$config_file" | awk '{print $NF}') + + if [ "${public_ip}" != "$current_ip" ]; then + echo "Setting the Public-IP using given variable: ${public_ip}" + + sed -i "s/^remote_endpoint = .*/remote_endpoint = ${public_ip}/" "$config_file" + fi + + fi + + fi +} + +# === CORE SERVICES === +start_core() { + printf "\n---------------------- STARTING CORE -----------------------\n" + + echo "Activating Python venv and executing the WireGuard Dashboard service." + + . "${WGDASH}"/src/venv/bin/activate + cd "${WGDASH}"/src || return + bash wgd.sh start + + # Isolated peers feature, first converting the existing configuration files and the given names to arrays. + # + # WILL BE REMOVED IN FUTURE WHEN WGDASHBOARD ITSELF SUPPORTS THIS!! + # + + local configurations=(/etc/wireguard/*) + IFS=',' read -r -a do_isolate <<< "${isolate}" + non_isolate=() + + # Checking if there are matches between the two arrays. + for config in "${configurations[@]}"; do + config=$(echo "$config" | sed -e 's|.*/etc/wireguard/||' -e 's|\.conf$||') + + local found + found=false + + for interface in "${do_isolate[@]}"; do + + if [[ "$config" == "$interface" ]]; then + found=true + break + fi + + done + + if [ "$found" = false ]; then + non_isolate+=("$config") + fi + + done + + # Isolating the matches. + for interface in "${do_isolate[@]}"; do + + if [ "$interface" = "none" ] || [ "$interface" = "" ]; then + echo "Found: $interface, stopping isolation checking." + break + else + 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) + downblocking=$(grep -c "PreDown = iptables -D FORWARD -i ${interface} -o ${interface} -j DROP" /etc/wireguard/"${interface}".conf) + + if [ "$upblocking" -lt 1 ] && [ "$downblocking" -lt 1 ]; then + sed -i "/PostUp =/a PostUp = iptables -I FORWARD -i ${interface} -o ${interface} -j DROP" /etc/wireguard/"${interface}".conf + sed -i "/PreDown =/a PreDown = iptables -D FORWARD -i ${interface} -o ${interface} -j DROP" /etc/wireguard/"${interface}".conf + fi + + else + echo "Configuration for $interface in enforce isolation does not seem to exist, continuing." + fi + + fi + + done + + # Removing isolation for the configurations that did not match. + 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 + sed -i "/PreDown = iptables -D FORWARD -i ${interface} -o ${interface} -j DROP/d" /etc/wireguard/"${interface}".conf + else + echo "Configuration for $interface in removing isolation does not seem to exist, continuing." + fi + + done +} + +ensure_blocking() { + sleep 1s + echo -e "\nEnsuring container continuation." + + # Find and tail the latest error and access logs if they exist + local logdir="/opt/wireguarddashboard/src/log" + + latestErrLog=$(find "$logdir" -name "error_*.log" -type f -print | sort -r | head -n 1) + latestAccLog=$(find "$logdir" -name "access_*.log" -type f -print | sort -r | head -n 1) + + # Only tail the logs if they are found + if [ -n "$latestErrLog" ] || [ -n "$latestAccLog" ]; then + tail -f "$latestErrLog" "$latestAccLog" + else + echo "No log files found to tail." + fi + + # Blocking command to keep the container running as a last resort. + sleep infinity +} + +# Execute functions for the WireGuard Dashboard services, then set the environment variables +ensure_installation +set_envvars +start_core +ensure_blocking \ No newline at end of file diff --git a/src/static/locale/active_languages.json b/src/static/locale/active_languages.json index 0ac71c7..c411fb9 100644 --- a/src/static/locale/active_languages.json +++ b/src/static/locale/active_languages.json @@ -1,9 +1,39 @@ [ + { + "lang_id": "cs", + "lang_name": "Czech", + "lang_name_localized": "Česky" + }, + { + "lang_id": "de", + "lang_name": "German", + "lang_name_localized": "Deutsch" + }, { "lang_id": "en", "lang_name": "English", "lang_name_localized": "English" }, + { + "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": "uk", + "lang_name": "Ukrainian", + "lang_name_localized": "Українська" + }, { "lang_id": "zh-CN", "lang_name": "Chinese (Simplified)", @@ -13,30 +43,5 @@ "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_name": "Italian", - "lang_name_localized": "Italiano" - }, - { - "lang_id": "ru", - "lang_name": "Russian", - "lang_name_localized": "Русский" - }, - { - "lang_id": "cs", - "lang_name": "Czech", - "lang_name_localized": "Česky" } ] diff --git a/src/static/locale/nl-NL.json b/src/static/locale/nl-NL.json new file mode 100644 index 0000000..c215fd0 --- /dev/null +++ b/src/static/locale/nl-NL.json @@ -0,0 +1,172 @@ +{ + "Welcome to": "Welkom bij", + "Username": "Gebruikersnaam", + "Password": "Wachtwoord", + "OTP from your authenticator": "OTP van je authenticator", + "Sign In": "Inloggen", + "Signing In...": "Inloggen...", + "Access Remote Server": "Toegang tot externe server", + "Server": "Server", + "Click": "Klik", + "Pinging...": "Pingen...", + "to add your server": "om je server toe te voegen", + "Server List": "Serverlijst", + "Sorry, your username or password is incorrect.": "Sorry, je gebruikersnaam of wachtwoord is onjuist.", + "Home": "Startpagina", + "Settings": "Instellingen", + "Tools": "Hulpmiddelen", + "Sign Out": "Uitloggen", + "Checking for update...": "Controleren op updates...", + "You're on the latest version": "Je hebt de nieuwste 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.": "Je hebt 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 wereldwijd gewijzigd en toegepast op de QR-code en configuratiebestand van alle peers.", + "WireGuard Configurations Settings": "Instellingen voor WireGuard-configuraties", + "Configurations Directory": "Configuratiemap", + "Remember to remove / at the end of your path. e.g /etc/wireguard": "Vergeet niet om de \"/\" aan het einde van je 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": "Verloopt op", + "Are you sure to delete this API key?": "Weet je zeker dat je deze API-sleutel wilt verwijderen?", + "Create API Key": "API-sleutel maken", + "When should this API Key expire?": "Wanneer moet deze API-sleutel verlopen?", + "Never Expire": "Geen vervaldatum", + "Don't think that's a good idea": "Dat is waarschijnlijk geen goed idee", + "Creating...": "Bezig met aanmaken...", + "Create": "Aanmaken", + "Status": "Status", + "On": "Aan", + "Off": "Uit", + "Turning On...": "Inschakelen...", + "Turning Off...": "Uitschakelen...", + "Address": "Adres", + "Listen Port": "Luisterpoort", + "Public Key": "Publieke sleutel", + "Connected Peers": "Verbonden peers", + "Total Usage": "Totale verbruik", + "Total Received": "Totaal ontvangen", + "Total Sent": "Totaal verzonden", + "Peers Data Usage": "Datagebruik van peers", + "Real Time Received Data Usage": "Ontvangen data in real-time", + "Real Time Sent Data Usage": "Verzonden data in real-time", + "Peer": "Peer", + "Peers": "Peers", + "Peer Settings": "Peer-instellingen", + "Download All": "Alles downloaden", + "Search Peers...": "Zoek peers...", + "Display": "Weergave", + "Sort By": "Sorteren op", + "Refresh Interval": "Verversingsinterval", + "Name": "Naam", + "Allowed IPs": "Toegestane IP's", + "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": "Privésleutel", + "(Required for QR Code and Download)": "(Vereist voor QR-code en downloaden)", + "(Required)": "(Vereist)", + "Endpoint Allowed IPs": "Toegestane IP's voor eindpunt", + "DNS": "DNS", + "Optional Settings": "Optionele instellingen", + "Pre-Shared Key": "Vooraf gedeelde sleutel", + "MTU": "MTU", + "Persistent Keepalive": "Persistente Keepalive", + "Reset Data Usage": "Datagebruik resetten", + "Total": "Totaal", + "Sent": "Verzonden", + "Received": "Ontvangen", + "Revert": "Herstellen", + "Save Peer": "Peer opslaan", + "QR Code": "QR-code", + "Schedule Jobs": "Taken plannen", + "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...": "Bezig met verwijderen...", + "Cancel": "Annuleren", + "Save": "Opslaan", + "No active job at the moment.": "Momenteel geen actieve taak.", + "Jobs Logs": "Taken logboeken", + "Updated at": "Bijgewerkt op", + "Refresh": "Verversen", + "Filter": "Filter", + "Success": "Succesvol", + "Failed": "Mislukt", + "Log ID": "Log-ID", + "Message": "Bericht", + "Share Peer": "Peer delen", + "Currently the peer is not sharing": "De peer wordt momenteel niet gedeeld", + "Sharing...": "Delen...", + "Start Sharing": "Delen starten", + "Stop Sharing...": "Delen stoppen...", + "Stop Sharing": "Delen stoppen", + "Access Restricted": "Toegang beperkt", + "Restrict Access": "Toegang beperken", + "Restricting...": "Beperken...", + "Allow Access": "Toegang toestaan", + "Allowing Access...": "Toegang toestaan...", + "Download & QR Code is not available due to no private key set for this peer": "Downloaden & QR-code zijn niet beschikbaar omdat er geen privésleutel is ingesteld voor deze peer", + "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 toevoegen van peers in bulk wordt de naam van elke peer automatisch gegenereerd, en wordt de toegestane IP toegekend aan het eerstvolgende beschikbare IP.", + "How many peers you want to add?": "Hoeveel peers wil je toevoegen?", + "You can add up to (.*) peers": "Je kunt maximaal $1 peers toevoegen", + "Use your own Private and Public Key": "Gebruik je eigen privésleutel en publieke sleutel", + "Enter IP Address/CIDR": "Voer IP-adres/CIDR in", + "IP Address/CIDR": "IP-adres/CIDR", + "or": "of", + "Pick Available IP": "Beschikbare IP kiezen", + "No available IP containing": "Geen beschikbare IP bevat", + "Add": "Toevoegen", + "Adding...": "Toevoegen...", + "Failed to check available update": "Controle op beschikbare update mislukt", + "Nice to meet you!": "Aangenaam!", + "Please fill in the following fields to finish setup": "Vul de volgende velden in om de setup te voltooien", + "Create an account": "Maak een account aan", + "Enter an username you like": "Voer een gebruikersnaam naar keuze in", + "Enter a password": "Voer een wachtwoord in", + "\\(At least 6 characters)": "(Minimaal 6 tekens)", + "Repeat password": "Herhaal wachtwoord", + "Set up": "Instellen", + "Setting up...": "Instellen...", + "Nice!": "Top!", + "Go to Login Page": "Ga naar de inlogpagina", + "Starting server...": "Server starten...", + "Status code": "Statuscode", + "Restart WGDashboard Server": "WGDashboard-server opnieuw starten", + "Restart": "Opnieuw starten", + "WGDashboard Web API Documentation": "WGDashboard Web API Documentatie" +} From 3b78cfe0fd93f86243818867f1f6ef9c168b94fd Mon Sep 17 00:00:00 2001 From: Daan Date: Thu, 7 Nov 2024 11:26:37 +0100 Subject: [PATCH 2/2] Renamed files and changed Dutch file. --- docker/compose.yaml | 2 +- src/static/locale/active_languages.json | 10 +- src/static/locale/{de.json => de-de.json} | 0 src/static/locale/{it-IT.json => it-it.json} | 0 src/static/locale/nl-NL.json | 172 ---------- src/static/locale/nl-nl.json | 311 +++++++++++++++++++ src/static/locale/{zh-CN.json => zh-cn.json} | 0 src/static/locale/{zh-HK.json => zh-hk.json} | 0 8 files changed, 317 insertions(+), 178 deletions(-) rename src/static/locale/{de.json => de-de.json} (100%) rename src/static/locale/{it-IT.json => it-it.json} (100%) delete mode 100644 src/static/locale/nl-NL.json create mode 100644 src/static/locale/nl-nl.json rename src/static/locale/{zh-CN.json => zh-cn.json} (100%) rename src/static/locale/{zh-HK.json => zh-hk.json} (100%) diff --git a/docker/compose.yaml b/docker/compose.yaml index a1acaca..f003d6b 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -1,6 +1,6 @@ services: wireguard-dashboard: - image: test:latest + image: donaldzou/wgdashboard:latest restart: unless-stopped container_name: wgdashboard environment: diff --git a/src/static/locale/active_languages.json b/src/static/locale/active_languages.json index c411fb9..644a3eb 100644 --- a/src/static/locale/active_languages.json +++ b/src/static/locale/active_languages.json @@ -5,7 +5,7 @@ "lang_name_localized": "Česky" }, { - "lang_id": "de", + "lang_id": "de-de", "lang_name": "German", "lang_name_localized": "Deutsch" }, @@ -15,12 +15,12 @@ "lang_name_localized": "English" }, { - "lang_id": "it-IT", + "lang_id": "it-it", "lang_name": "Italian", "lang_name_localized": "Italiano" }, { - "lang_id": "nl-NL", + "lang_id": "nl-nl", "lang_name": "Dutch", "lang_name_localized": "Nederlands" }, @@ -35,12 +35,12 @@ "lang_name_localized": "Українська" }, { - "lang_id": "zh-CN", + "lang_id": "zh-cn", "lang_name": "Chinese (Simplified)", "lang_name_localized": "中文(简体)" }, { - "lang_id": "zh-HK", + "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 deleted file mode 100644 index c215fd0..0000000 --- a/src/static/locale/nl-NL.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "Welcome to": "Welkom bij", - "Username": "Gebruikersnaam", - "Password": "Wachtwoord", - "OTP from your authenticator": "OTP van je authenticator", - "Sign In": "Inloggen", - "Signing In...": "Inloggen...", - "Access Remote Server": "Toegang tot externe server", - "Server": "Server", - "Click": "Klik", - "Pinging...": "Pingen...", - "to add your server": "om je server toe te voegen", - "Server List": "Serverlijst", - "Sorry, your username or password is incorrect.": "Sorry, je gebruikersnaam of wachtwoord is onjuist.", - "Home": "Startpagina", - "Settings": "Instellingen", - "Tools": "Hulpmiddelen", - "Sign Out": "Uitloggen", - "Checking for update...": "Controleren op updates...", - "You're on the latest version": "Je hebt de nieuwste 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.": "Je hebt 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 wereldwijd gewijzigd en toegepast op de QR-code en configuratiebestand van alle peers.", - "WireGuard Configurations Settings": "Instellingen voor WireGuard-configuraties", - "Configurations Directory": "Configuratiemap", - "Remember to remove / at the end of your path. e.g /etc/wireguard": "Vergeet niet om de \"/\" aan het einde van je 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": "Verloopt op", - "Are you sure to delete this API key?": "Weet je zeker dat je deze API-sleutel wilt verwijderen?", - "Create API Key": "API-sleutel maken", - "When should this API Key expire?": "Wanneer moet deze API-sleutel verlopen?", - "Never Expire": "Geen vervaldatum", - "Don't think that's a good idea": "Dat is waarschijnlijk geen goed idee", - "Creating...": "Bezig met aanmaken...", - "Create": "Aanmaken", - "Status": "Status", - "On": "Aan", - "Off": "Uit", - "Turning On...": "Inschakelen...", - "Turning Off...": "Uitschakelen...", - "Address": "Adres", - "Listen Port": "Luisterpoort", - "Public Key": "Publieke sleutel", - "Connected Peers": "Verbonden peers", - "Total Usage": "Totale verbruik", - "Total Received": "Totaal ontvangen", - "Total Sent": "Totaal verzonden", - "Peers Data Usage": "Datagebruik van peers", - "Real Time Received Data Usage": "Ontvangen data in real-time", - "Real Time Sent Data Usage": "Verzonden data in real-time", - "Peer": "Peer", - "Peers": "Peers", - "Peer Settings": "Peer-instellingen", - "Download All": "Alles downloaden", - "Search Peers...": "Zoek peers...", - "Display": "Weergave", - "Sort By": "Sorteren op", - "Refresh Interval": "Verversingsinterval", - "Name": "Naam", - "Allowed IPs": "Toegestane IP's", - "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": "Privésleutel", - "(Required for QR Code and Download)": "(Vereist voor QR-code en downloaden)", - "(Required)": "(Vereist)", - "Endpoint Allowed IPs": "Toegestane IP's voor eindpunt", - "DNS": "DNS", - "Optional Settings": "Optionele instellingen", - "Pre-Shared Key": "Vooraf gedeelde sleutel", - "MTU": "MTU", - "Persistent Keepalive": "Persistente Keepalive", - "Reset Data Usage": "Datagebruik resetten", - "Total": "Totaal", - "Sent": "Verzonden", - "Received": "Ontvangen", - "Revert": "Herstellen", - "Save Peer": "Peer opslaan", - "QR Code": "QR-code", - "Schedule Jobs": "Taken plannen", - "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...": "Bezig met verwijderen...", - "Cancel": "Annuleren", - "Save": "Opslaan", - "No active job at the moment.": "Momenteel geen actieve taak.", - "Jobs Logs": "Taken logboeken", - "Updated at": "Bijgewerkt op", - "Refresh": "Verversen", - "Filter": "Filter", - "Success": "Succesvol", - "Failed": "Mislukt", - "Log ID": "Log-ID", - "Message": "Bericht", - "Share Peer": "Peer delen", - "Currently the peer is not sharing": "De peer wordt momenteel niet gedeeld", - "Sharing...": "Delen...", - "Start Sharing": "Delen starten", - "Stop Sharing...": "Delen stoppen...", - "Stop Sharing": "Delen stoppen", - "Access Restricted": "Toegang beperkt", - "Restrict Access": "Toegang beperken", - "Restricting...": "Beperken...", - "Allow Access": "Toegang toestaan", - "Allowing Access...": "Toegang toestaan...", - "Download & QR Code is not available due to no private key set for this peer": "Downloaden & QR-code zijn niet beschikbaar omdat er geen privésleutel is ingesteld voor deze peer", - "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 toevoegen van peers in bulk wordt de naam van elke peer automatisch gegenereerd, en wordt de toegestane IP toegekend aan het eerstvolgende beschikbare IP.", - "How many peers you want to add?": "Hoeveel peers wil je toevoegen?", - "You can add up to (.*) peers": "Je kunt maximaal $1 peers toevoegen", - "Use your own Private and Public Key": "Gebruik je eigen privésleutel en publieke sleutel", - "Enter IP Address/CIDR": "Voer IP-adres/CIDR in", - "IP Address/CIDR": "IP-adres/CIDR", - "or": "of", - "Pick Available IP": "Beschikbare IP kiezen", - "No available IP containing": "Geen beschikbare IP bevat", - "Add": "Toevoegen", - "Adding...": "Toevoegen...", - "Failed to check available update": "Controle op beschikbare update mislukt", - "Nice to meet you!": "Aangenaam!", - "Please fill in the following fields to finish setup": "Vul de volgende velden in om de setup te voltooien", - "Create an account": "Maak een account aan", - "Enter an username you like": "Voer een gebruikersnaam naar keuze in", - "Enter a password": "Voer een wachtwoord in", - "\\(At least 6 characters)": "(Minimaal 6 tekens)", - "Repeat password": "Herhaal wachtwoord", - "Set up": "Instellen", - "Setting up...": "Instellen...", - "Nice!": "Top!", - "Go to Login Page": "Ga naar de inlogpagina", - "Starting server...": "Server starten...", - "Status code": "Statuscode", - "Restart WGDashboard Server": "WGDashboard-server opnieuw starten", - "Restart": "Opnieuw starten", - "WGDashboard Web API Documentation": "WGDashboard Web API Documentatie" -} diff --git a/src/static/locale/nl-nl.json b/src/static/locale/nl-nl.json new file mode 100644 index 0000000..1dd0f90 --- /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