From be98bcba3f55cd27274bd713679e8f43f2a1dcc5 Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 7 Jan 2026 14:44:31 +0700 Subject: [PATCH] fix translate --- src/app/ui/marking-page/protection-summary.tsx | 6 +++++- src/i18n/messages/en.json | 2 +- src/i18n/messages/ru.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/ui/marking-page/protection-summary.tsx b/src/app/ui/marking-page/protection-summary.tsx index 7c32df8..951abfe 100644 --- a/src/app/ui/marking-page/protection-summary.tsx +++ b/src/app/ui/marking-page/protection-summary.tsx @@ -77,7 +77,11 @@ export default function ProtectionSummary({ fileType }: { fileType: string }) {
{filesInfo?.totalCount ? filesInfo?.totalCount : 0}
-
{t('total-files')}
+
+ {t('total-files')} +
+ ({t(`${fileType}s`)}) +
0
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index 0dd0c81..3e2aa4a 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -18,7 +18,7 @@ "check": "Checks", "documents": "Documents", "videos": "Videos", - "video": "videos", + "video": "video", "audios": "Audio", "audio": "audio", "images": "Images", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 3ae3eb2..431e70b 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -128,7 +128,7 @@ "drag-the-file-here": "Перетащите файл сюда", "select-files-to-protect": "Выбрать файлы для защиты", "upload-for-protection": "Загрузить {fileType} для защиты", - "image": "изображений", + "image": "изображение", "file-has-no-extension": "Файл не имеет расширения", "have-unsaved-changes": "У вас есть несохраненные изменения. Вы уверены, что хотите покинуть страницу?", "image-size": "Размер изображения",