From 3fc0e0279859de1094a3772b05720cf7db8be507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Spagnolo?= <57506122+spagnoloG@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:37:09 +0200 Subject: [PATCH] Add slovene translation (#1440) --- README.md | 2 +- docker-compose.yml | 2 +- src/www/js/i18n.js | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b23075439..b3d90f128 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ These options can be configured by setting environment variables using `-e KEY=" | `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L27) for the default value. | | `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/wg-easy/wg-easy/blob/master/src/config.js#L28) for the default value. | | `WG_ENABLE_EXPIRES_TIME` | `false` | `true` | Enable expire time for clients | -| `LANG` | `en` | `de` | Web UI language (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja). | +| `LANG` | `en` | `de` | Web UI language (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja, si). | | `UI_TRAFFIC_STATS` | `false` | `true` | Enable detailed RX / TX client stats in Web UI | | `UI_CHART_TYPE` | `0` | `1` | UI_CHART_TYPE=0 # Charts disabled, UI_CHART_TYPE=1 # Line chart, UI_CHART_TYPE=2 # Area chart, UI_CHART_TYPE=3 # Bar chart | | `WG_ENABLE_ONE_TIME_LINKS` | `false` | `true` | Enable display and generation of short one time download links (expire after 5 minutes) | diff --git a/docker-compose.yml b/docker-compose.yml index a6005e93c..f1972710f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: wg-easy: environment: # Change Language: - # (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja) + # (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja, si) - LANG=en # ⚠️ Required: # Change this to your host's public address diff --git a/src/www/js/i18n.js b/src/www/js/i18n.js index c2edbeed4..be1c14ad8 100644 --- a/src/www/js/i18n.js +++ b/src/www/js/i18n.js @@ -680,4 +680,35 @@ const messages = { // eslint-disable-line no-unused-vars Permanent: '無期限', OneTimeLink: '短いワンタイムリンクを生成', }, + si: { // github.com/spagnoloG + name: 'Ime', + password: 'Geslo', + signIn: 'Prijava', + logout: 'Odjava', + updateAvailable: 'Na voljo je posodobitev!', + update: 'Posodobi', + clients: 'Odjemalci', + new: 'Novo', + deleteClient: 'Izbriši odjemalca', + deleteDialog1: 'Ali ste prepričani, da želite izbrisati', + deleteDialog2: 'Tega dejanja ni mogoče razveljaviti.', + cancel: 'Prekliči', + create: 'Ustvari', + createdOn: 'Ustvarjeno dne ', + lastSeen: 'Zadnjič viden ', + totalDownload: 'Skupno prenos: ', + totalUpload: 'Skupno nalaganje: ', + newClient: 'Nov odjemalec', + disableClient: 'Onemogoči odjemalca', + enableClient: 'Omogoči odjemalca', + noClients: 'Še ni odjemalcev.', + showQR: 'Prikaži QR kodo', + downloadConfig: 'Prenesi konfiguracijo', + madeBy: 'Ustvaril', + donate: 'Doniraj', + restore: 'Obnovi', + backup: 'Varnostna kopija', + titleRestoreConfig: 'Obnovi svojo konfiguracijo', + titleBackupConfig: 'Ustvari varnostno kopijo svoje konfiguracije', + }, };