From ceacaa9e3c59973d7cc5d650ea8a3374d5a03ea3 Mon Sep 17 00:00:00 2001 From: cany748 Date: Sat, 11 Jun 2022 15:30:09 +0700 Subject: [PATCH] add multilanguage support and add russian language --- src/www/index.html | 89 ++++++++++++++++----------- src/www/js/app.js | 15 ++++- src/www/js/i18n.js | 60 ++++++++++++++++++ src/www/js/vendor/timeago.full.min.js | 1 + src/www/js/vendor/timeago.min.js | 1 - src/www/js/vendor/vue-i18n.min.js | 6 ++ 6 files changed, 134 insertions(+), 38 deletions(-) create mode 100644 src/www/js/i18n.js create mode 100644 src/www/js/vendor/timeago.full.min.js delete mode 100644 src/www/js/vendor/timeago.min.js create mode 100644 src/www/js/vendor/vue-i18n.min.js diff --git a/src/www/index.html b/src/www/index.html index 4080c51a..3d2c1590 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -20,30 +20,46 @@
- Logout + {{$t("logout")}} -

- - WireGuard -

+
+

+ + WireGuard +

+
+ + +
+

-

There is an update available!

+

{{$t("updateAvailable")}}

{{latestRelease.changelog}}

- Update → + {{$t("update")}} →
@@ -51,7 +67,7 @@
-

Clients

+

{{$t("clients")}}

@@ -101,7 +117,7 @@
-
+
- + · @@ -166,7 +182,7 @@ - + · @@ -179,7 +195,7 @@ + :title="$t('lastSeen') + dateTime(new Date(client.latestHandshakeAt))"> · {{new Date(client.latestHandshakeAt) | timeago}}
@@ -189,18 +205,18 @@
-
-

@@ -318,12 +334,12 @@

+ type="text" v-model.trim="clientCreateName" :placeholder="$t('name')" />

@@ -332,15 +348,15 @@
@@ -392,12 +408,11 @@

- Are you sure you want to delete {{clientDelete.name}}? - This action cannot be undone. + {{$t("deleteDialog1")}} {{clientDelete.name}}? {{$t("deleteDialog2")}}

@@ -406,11 +421,11 @@
@@ -430,7 +445,7 @@ -