Полностью поддерживает английский язык

This commit is contained in:
AidarKC
2026-11-10 14:02:34 +03:00
parent 405b9a91a7
commit 9c30b33b39
71 changed files with 2658 additions and 1445 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
import { t } from '../i18n/index.js';
import { formatDateTime } from '../i18n/format.js';
import { t, th } from '../i18n/index.js';
import { createTopBar } from '../components/topbar.js';
import { authService } from '../state.js';
import { KeyRotationClient } from '../services/key-rotation-service.js';
@@ -75,7 +76,7 @@ function shortHash(value) {
function formatDate(ms) {
try {
return new Date(Number(ms) || 0).toLocaleString('ru-RU');
return formatDateTime(new Date(Number(ms) || 0));
} catch {
return '';
}
@@ -568,7 +569,7 @@ export function render({ navigate, chrome }, { historyOnly = false } = {}) {
if (reset) {
const head = document.createElement('div');
head.className = 'card stack';
head.innerHTML = `<strong>${escapeHtml(data.blockchainName || '—')}</strong><span class="meta-muted">Последний блок: #${Number(data.tipBlockNumber ?? -1)} · ${shortHash(data.tipBlockHash)}</span>`;
head.innerHTML = `<strong>${escapeHtml(data.blockchainName || '—')}</strong><span class="meta-muted">${th('remaining.html_my_blockchain_view.last_block')}${Number(data.tipBlockNumber ?? -1)} · ${shortHash(data.tipBlockHash)}</span>`;
list.append(head);
}