SHA256
Полностью поддерживает английский язык
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user