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

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
+5 -4
View File
@@ -1,3 +1,4 @@
import { formatDateTime } from '../i18n/format.js';
import { t, th } from '../i18n/index.js';
import { appendShineMessageLinks } from '../services/shine-message-links.js';
import { confirmDialog } from '../components/confirm-dialog.js';
@@ -477,7 +478,7 @@ function openBlockchainDetailsModal(details, { isActive = () => true } = {}) {
<span>${t('dialogs.modals.channel_thread_view.label_005')}</span><code>${escapeHtml(details.blockNumber)}</code>
<span>${t('dialogs.modals.channel_thread_view.label_006')}</span><code>${escapeHtml(details.blockHash)}</code>
<span>${t('dialogs.modals.channel_thread_view.label_007')}</span><code>${escapeHtml(details.msgSubType)}</code>
<span>${t('dialogs.modals.channel_thread_view.label_008')}</span><code>${escapeHtml(details.createdAtMs ? new Date(Number(details.createdAtMs)).toLocaleString('ru-RU') : '–')}</code>
<span>${t('dialogs.modals.channel_thread_view.label_008')}</span><code>${escapeHtml(details.createdAtMs ? formatDateTime(new Date(Number(details.createdAtMs))) : '–')}</code>
<span>Public key</span><code>${escapeHtml(details.publicKey)}</code>
<span>${t('dialogs.modals.channel_thread_view.label_009')}</span><code>${escapeHtml(details.signature)}</code>
</div>
@@ -634,7 +635,7 @@ function openMessageHistoryModal({ versions = [], title = t('dialogs.remaining.p
const text = String(item?.text || '').trim() || t('dialogs.remaining.pages.channel_thread_view.openmessagehistorymodal.udaleno');
row.innerHTML = `
<strong>${t('dialogs.final.history.version', { version: index + 1 })}</strong>
<div class="meta-muted">${ts > 0 ? new Date(ts).toLocaleString('ru-RU') : '–'}</div>
<div class="meta-muted">${ts > 0 ? formatDateTime(new Date(ts)) : '–'}</div>
<p class="channel-message-body">${text}</p>
`;
list.append(row);
@@ -730,7 +731,7 @@ function renderNodeCard(node, heading, handlers, localNumber, { focusPost = fals
const timestamp = document.createElement('div');
timestamp.className = 'channel-message-time';
timestamp.textContent = node?.createdAtMs ? formatRelativeTime(node.createdAtMs) : '–';
if (node?.createdAtMs) timestamp.title = new Date(node.createdAtMs).toLocaleString('ru-RU');
if (node?.createdAtMs) timestamp.title = formatDateTime(new Date(node.createdAtMs));
authorBlock.append(title, timestamp);
authorTile.append(avatar, authorBlock);
// Запись канала в обсуждении – как открытый пост в Threads: аватар и название канала в шапке, текст на всю ширину.
@@ -1143,7 +1144,7 @@ function renderComment({ node, parent, focus, channelOwner, handlers, nested = f
}
const time = document.createElement('time');
time.textContent = formatShortAge(node?.createdAtMs);
if (node?.createdAtMs) time.title = new Date(node.createdAtMs).toLocaleString('ru-RU');
if (node?.createdAtMs) time.title = formatDateTime(new Date(node.createdAtMs));
head.append(time);
main.append(head);