Update localization

This commit is contained in:
2026-01-11 08:11:04 +03:00
parent 876e591e3b
commit 7180b0427d
2 changed files with 3 additions and 2 deletions

View File

@@ -414,7 +414,7 @@
</template>
<!-- JS -->
<script src="js/app.js?v=2"></script>
<script src="js/app.js?v=3"></script>
</body>
</html>

View File

@@ -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';
}