[PR #1025] [MERGED] feature: i18n #83

Closed
opened 2026-07-19 11:34:49 +03:00 by mirror-bot · 0 comments

📋 Pull Request Information

Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/1025
Author: @rozkomnadzor
Created: 6/22/2026
Status: Merged
Merged: 6/23/2026
Merged by: @Flowseal

Base: mainHead: features/i18n


📝 Commits (7)

📊 Changes

9 files changed (+808 additions, -307 deletions)

View changed files

📝 linux.py (+47 -30)
📝 ui/ctk_tray_ui.py (+213 -183)
ui/i18n/__init__.py (+164 -0)
ui/i18n/en.json (+148 -0)
ui/i18n/ru.json (+148 -0)
📝 utils/default_config.py (+4 -1)
📝 utils/diagnostics.py (+5 -26)
📝 utils/tray_common.py (+19 -18)
📝 windows.py (+60 -49)

📄 Description

Что сделано

Добавил возможность выбора языка в настройках

Для добавления новых локалей требуется добавить новый маппинг для языка и его локаль добавить в LocaleEnum (i18n/__init__.py::13)

Протестировано на win10, python3.11
image
image
image

Зачем

Было несколько просьб добавить выбор языка
https://github.com/Flowseal/tg-ws-proxy/issues/988
https://github.com/Flowseal/tg-ws-proxy/issues/941

Как проверить

-


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Flowseal/tg-ws-proxy/pull/1025 **Author:** [@rozkomnadzor](https://github.com/rozkomnadzor) **Created:** 6/22/2026 **Status:** ✅ Merged **Merged:** 6/23/2026 **Merged by:** [@Flowseal](https://github.com/Flowseal) **Base:** `main` ← **Head:** `features/i18n` --- ### 📝 Commits (7) - [`1f97414`](https://github.com/Flowseal/tg-ws-proxy/commit/1f974148cb7248823e38f6377e012e6c14d9fcae) i18n - [`57901ab`](https://github.com/Flowseal/tg-ws-proxy/commit/57901ab3210886e47c3c08d826ed0ff4fe396268) fix tray lang & lang refresh - [`a8218e5`](https://github.com/Flowseal/tg-ws-proxy/commit/a8218e559fa32f78c4cc761995febe9fc694eb73) cleanup - [`059b9cd`](https://github.com/Flowseal/tg-ws-proxy/commit/059b9cd740ff0210f0762bf6eccbb340c808d720) enum locale - [`0c50d15`](https://github.com/Flowseal/tg-ws-proxy/commit/0c50d1595ff2a77cbccb90c0c08276269d24d539) theme settings moved to interface section, removed auto system language - [`0937c80`](https://github.com/Flowseal/tg-ws-proxy/commit/0937c804d3eda88a5c3fc2d9c7724932af589a4f) fix & cleanup - [`4716077`](https://github.com/Flowseal/tg-ws-proxy/commit/4716077815ca002e8cba6e06709278cf648edf60) lang and theme on single row ### 📊 Changes **9 files changed** (+808 additions, -307 deletions) <details> <summary>View changed files</summary> 📝 `linux.py` (+47 -30) 📝 `ui/ctk_tray_ui.py` (+213 -183) ➕ `ui/i18n/__init__.py` (+164 -0) ➕ `ui/i18n/en.json` (+148 -0) ➕ `ui/i18n/ru.json` (+148 -0) 📝 `utils/default_config.py` (+4 -1) 📝 `utils/diagnostics.py` (+5 -26) 📝 `utils/tray_common.py` (+19 -18) 📝 `windows.py` (+60 -49) </details> ### 📄 Description ## Что сделано Добавил возможность выбора языка в настройках Для добавления новых локалей требуется добавить новый маппинг для языка и его локаль добавить в LocaleEnum _(i18n/\_\_init\_\_.py::13)_ Протестировано на win10, python3.11 <img width="466" height="590" alt="image" src="https://github.com/user-attachments/assets/375e214b-063e-485f-9654-1fad21e7e799" /> <img width="462" height="596" alt="image" src="https://github.com/user-attachments/assets/6f01d689-bdd1-4b74-be95-06912a937222" /> <img width="280" height="155" alt="image" src="https://github.com/user-attachments/assets/8255f689-5163-45e0-a493-1b627b9f26fc" /> ## Зачем Было несколько просьб добавить выбор языка https://github.com/Flowseal/tg-ws-proxy/issues/988 https://github.com/Flowseal/tg-ws-proxy/issues/941 ## Как проверить \- --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror-bot added the pull-request label 2026-07-19 11:34:49 +03:00
mirror-bot changed title from [PR #1025] [MERGED] feature: i18n to [PR #1025] feature: i18n 2026-07-20 04:11:32 +03:00
mirror-bot changed title from [PR #1025] feature: i18n to [PR #1025] [MERGED] feature: i18n 2026-07-20 23:15:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Utilities/tg-ws-proxy#83