add translates
This commit is contained in:
@@ -74,16 +74,16 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
className="file-info-card"
|
||||
>
|
||||
<div className="info-header">
|
||||
<h4>Информация о файле</h4>
|
||||
<h4>{t('file-information')}</h4>
|
||||
</div>
|
||||
<div className="info-item">
|
||||
<span className="info-label">ID в системе:</span>
|
||||
<span className="info-label">{t('id-in-the-system')}:</span>
|
||||
<span className="info-value">
|
||||
{e.supportId ? e.supportId : '#'}
|
||||
</span>
|
||||
</div>
|
||||
<div className="info-item">
|
||||
<span className="info-label">Дата загрузки:</span>
|
||||
<span className="info-label">{t('upload-date')}:</span>
|
||||
<span className="info-value">
|
||||
{e.uploadDate ? formatDate(e.uploadDate) : '#'}
|
||||
<br />
|
||||
@@ -91,13 +91,13 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
</span>
|
||||
</div>
|
||||
<div className="info-item">
|
||||
<span className="info-label">Размер файла:</span>
|
||||
<span className="info-label">{t('file-size')}:</span>
|
||||
<span className="info-value">
|
||||
{convertBytes(e.fileSize)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="info-item">
|
||||
<span className="info-label">Статус защиты:</span>
|
||||
<span className="info-label">{t('protection-status')}:</span>
|
||||
<span className="info-value">
|
||||
{e.status ? t(e.status) : '#'}
|
||||
</span>
|
||||
@@ -117,9 +117,9 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
className="user-file-search-results"
|
||||
>
|
||||
<div className="results-header">
|
||||
<div className="results-title">Результаты поиска</div>
|
||||
<div className="results-title">{t('search-results-title')}</div>
|
||||
<div className="results-count">
|
||||
Найдено файлов: {list.length}
|
||||
{t('files-found', { count: list.length })}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@@ -152,20 +152,19 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
{e.originalFileName}
|
||||
</div>
|
||||
<div className="result-details">
|
||||
Загружен: {e.uploadDate ? formatDate(e.uploadDate) : '#'} •
|
||||
Размер: {convertBytes(e.fileSize)}
|
||||
{t('loaded')}: {e.uploadDate ? formatDate(e.uploadDate) : '#'} • {t('size')} : {convertBytes(e.fileSize)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="similarity-score">
|
||||
<div className="similarity-percentage">
|
||||
{e.similarityLevel}
|
||||
{t(e.similarityLevel)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="result-badges">
|
||||
<span className={`badge ${e.status === 'PROTECTED' ? 'badge-protected' : 'badge-not-protected'}`}>
|
||||
{e.status}
|
||||
{t(e.status)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -178,7 +177,7 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
}}
|
||||
>
|
||||
<IconEye />
|
||||
Просмотр
|
||||
{t('view')}
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-success gap-1"
|
||||
@@ -186,7 +185,7 @@ export function SearchedUserFilesList({ list, allowedExtensions }: { list: FileI
|
||||
onClick={() => handlerDownload(e.fileId, e.originalFileName)}
|
||||
>
|
||||
<IconDownload />
|
||||
Скачать
|
||||
{t('download')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user