From 8dac694a3c665cdfe562bcacc1d6d51f20753094 Mon Sep 17 00:00:00 2001 From: Artemii Peretiachenko Date: Wed, 23 Sep 2026 20:29:21 +0200 Subject: [PATCH] Remove leftover theme detection now that the site is dark only. Co-authored-by: Cursor --- scripts/build.py | 12 ------------ src/translations.json | 3 --- 2 files changed, 15 deletions(-) diff --git a/scripts/build.py b/scripts/build.py index 21f524a..591b118 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -272,17 +272,6 @@ LANG_REDIRECT_SCRIPT = r"""""" -THEME_SCRIPT = """""" - - def home_href(locale: dict) -> str: return f"{locale['prefix']}/" if locale["prefix"] else "/" @@ -300,7 +289,6 @@ def build_page(locale: dict, page: dict, translations: dict, template: str) -> s html = html.replace("{{HTML_LANG}}", locale["html_lang"]) html = html.replace("{{PAGE_LANG}}", locale["id"]) html = html.replace("{{HEAD_META}}", head_meta(locale, page, translations)) - html = html.replace("{{THEME_SCRIPT}}", THEME_SCRIPT) html = html.replace("{{LANG_REDIRECT_SCRIPT}}", LANG_REDIRECT_SCRIPT) html = html.replace("{{HOME_HREF}}", home_href(locale)) html = html.replace("{{TERMINAL_HREF}}", terminal_href(locale)) diff --git a/src/translations.json b/src/translations.json index a846a65..32dc64d 100644 --- a/src/translations.json +++ b/src/translations.json @@ -123,7 +123,6 @@ "form.statusLoading": "...", "form.statusSuccess": "Отправлено ✓", "form.statusError": "Не удалось отправить. Попробуйте ещё раз.", - "a11y.toggleTheme": "Переключить тему", "a11y.sections": "Разделы", "terminal.meta.title": "428th Terminal — автотрейдинг по TradingView сигналам", "terminal.meta.description": "428th Terminal — автотрейдинг по сигналам TradingView на BingX, Bybit и MEXC. Автоматическое открытие позиций со стопом и тейком.", @@ -289,7 +288,6 @@ "form.statusLoading": "...", "form.statusSuccess": "Надіслано ✓", "form.statusError": "Не вдалося надіслати. Спробуйте ще раз.", - "a11y.toggleTheme": "Перемкнути тему", "a11y.sections": "Розділи", "terminal.meta.title": "428th Terminal — автотрейдинг за сигналами TradingView", "terminal.meta.description": "428th Terminal — автотрейдинг за сигналами TradingView на BingX, Bybit і MEXC. Автоматичне відкриття позицій зі стопом і тейком.", @@ -455,7 +453,6 @@ "form.statusLoading": "...", "form.statusSuccess": "Sent ✓", "form.statusError": "Could not send. Please try again.", - "a11y.toggleTheme": "Toggle theme", "a11y.sections": "Sections", "terminal.meta.title": "428th Terminal — auto trading via TradingView signals", "terminal.meta.description": "428th Terminal — auto-trading via TradingView signals on BingX, Bybit and MEXC. Positions open automatically with stop-loss and take-profit.",