SHA256
Полностью поддерживает английский язык
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { formatDate } from '../i18n/format.js';
|
||||
import { t, th } from '../i18n/index.js';
|
||||
import { iconHtml } from '../components/ui-icon.js';
|
||||
import { createTopBar } from '../components/topbar.js';
|
||||
@@ -78,9 +79,9 @@ function formatChannelCreatedAt(value) {
|
||||
const time = Number(value || 0);
|
||||
if (!Number.isFinite(time) || time <= 0) return t('screens.channel_about_view.text_011');
|
||||
try {
|
||||
return new Intl.DateTimeFormat('ru-RU', { day: '2-digit', month: 'long', year: 'numeric' }).format(new Date(time));
|
||||
return formatDate(new Date(time), { day: '2-digit', month: 'long', year: 'numeric' });
|
||||
} catch {
|
||||
return new Date(time).toLocaleDateString('ru-RU');
|
||||
return formatDate(new Date(time));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -619,7 +620,7 @@ export function render({ navigate, route, chrome }) {
|
||||
<span class="channel-about-owner-avatar" id="channel-about-owner-avatar"></span>
|
||||
<span class="channel-about-row-main">
|
||||
<strong>${escapeHtml(ownerName)}</strong>
|
||||
<span class="channel-about-row-label">Владелец · ${escapeHtml(ownerLogin)}</span>
|
||||
<span class="channel-about-row-label">${th('remaining.html_channel_about_view.owner')}${escapeHtml(ownerLogin)}</span>
|
||||
</span>
|
||||
<span class="channel-about-row-chevron">${iconHtml('chevron')}</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user