From 7180b0427d11196981ff1414cb328bffdf7f7346 Mon Sep 17 00:00:00 2001 From: hoshimach1 Date: Sun, 11 Jan 2026 08:11:04 +0300 Subject: [PATCH] Update localization --- web_app/static/index.html | 2 +- web_app/static/js/app.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web_app/static/index.html b/web_app/static/index.html index 84d7010..e562429 100644 --- a/web_app/static/index.html +++ b/web_app/static/index.html @@ -414,7 +414,7 @@ - + \ No newline at end of file diff --git a/web_app/static/js/app.js b/web_app/static/js/app.js index 612aa88..fb239e6 100644 --- a/web_app/static/js/app.js +++ b/web_app/static/js/app.js @@ -218,7 +218,8 @@ function initApp() { try { tg.setHeaderColor('#0f172a'); } catch (e) { } currentState.user = tg.initDataUnsafe?.user; - if (tg.initDataUnsafe?.user?.language_code === 'ru') { + const userLang = (tg.initDataUnsafe?.user?.language_code || 'en').toLowerCase(); + if (userLang === 'ru' || userLang.startsWith('ru')) { currentState.lang = 'ru'; }