Update localization
This commit is contained in:
@@ -414,7 +414,7 @@
|
||||
</template>
|
||||
|
||||
<!-- JS -->
|
||||
<script src="js/app.js?v=2"></script>
|
||||
<script src="js/app.js?v=3"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user