From 5fdd5e19874bc8f05a4cebd2c57cd80196fc20c6 Mon Sep 17 00:00:00 2001 From: Marat Budkevich <93652988+marat2509@users.noreply.github.com> Date: Sat, 30 Mar 2024 17:01:24 +0000 Subject: [PATCH] Russian language; compose files --- compose.dev.yaml | 7 +++++++ compose.yaml | 7 +++++++ ui/src/config/lang.js | 9 ++++++++- ui/src/locales/ru-RU.json | 23 +++++++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 compose.dev.yaml create mode 100644 compose.yaml create mode 100644 ui/src/locales/ru-RU.json diff --git a/compose.dev.yaml b/compose.dev.yaml new file mode 100644 index 0000000..a075cbc --- /dev/null +++ b/compose.dev.yaml @@ -0,0 +1,7 @@ +services: + als: + build: . + container_name: als + ports: + - 80:80 + restart: unless-stopped diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..0718545 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,7 @@ +services: + als: + image: wikihostinc/looking-glass-server + container_name: als + ports: + - 80:80 + restart: unless-stopped diff --git a/ui/src/config/lang.js b/ui/src/config/lang.js index 5bdcc59..ed87ac3 100644 --- a/ui/src/config/lang.js +++ b/ui/src/config/lang.js @@ -1,4 +1,4 @@ -import { zhCN, dateZhCN, enUS, dateEnUS } from 'naive-ui' +import { zhCN, dateZhCN, enUS, dateEnUS, ruRU, dateRuRU } from 'naive-ui' import { nextTick } from 'vue' import { createI18n } from 'vue-i18n' @@ -16,6 +16,13 @@ export const list = [ autoChangeMap: ['en-US', 'en'], uiLang: () => enUS, dateLang: () => dateEnUS + }, + { + label: 'Русский', + value: 'ru-RU', + autoChangeMap: ['ru-RU', 'ru'], + uiLang: () => ruRU, + dateLang: () => dateRuRU } ] diff --git a/ui/src/locales/ru-RU.json b/ui/src/locales/ru-RU.json new file mode 100644 index 0000000..1ddd69c --- /dev/null +++ b/ui/src/locales/ru-RU.json @@ -0,0 +1,23 @@ +{ + "server_info": "Информация о сервере", + "server_location": "Локация сервера", + "server_speedtest": "Тест скорости сервера", + "file_speedtest": "Тест загрузки файлов", + "file_ipv4_speedtest": "Тест загрузки по IPv4", + "file_ipv6_speedtest": "Тест загрузки по IPv6", + "librespeed_begin": "Начать тест", + "librespeed_stop": "Остановить тест", + "librespeed_upload": "Загрузка", + "librespeed_download": "Загрузка", + "network_tools": "Сетевые инструменты", + "server_bandwidth_graph": "Диаграмма пропускной способности сервера", + "server_bandwidth_graph_receive": "Получено", + "server_bandwidth_graph_sended": "Отправлено", + "ipv4_address": "IPv4-адрес", + "ipv6_address": "IPv6-адрес", + "my_address": "Ваш текущий IP-адрес", + "sponsor_message": "Сообщение спонсора", + "memory_usage": "Использование памяти" + } + + \ No newline at end of file