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