From e5cb9aa848009ea22c1385e4d33b7edf372979fb Mon Sep 17 00:00:00 2001 From: Ahmad Mujahid <55625580+AhmadMuj@users.noreply.github.com> Date: Mon, 17 Feb 2025 13:25:16 +0400 Subject: feat: Add PDF screenshot generation and display (#995) * Updated pdf2json to 3.1.5 * Extract and store a screenshot from PDF files using pdf2pic * Installing graphicsmagick and ghostscript * Generate Missing PDF screenshot with tidyAssets worker for backward support * Display PDF screenshot instead of the PDF in web if it exists. * Display PDF screenshot in mobile app if exists. * Updated pnpm-lock.yaml * Removed console.log * Revert the unnecessary changes in package.json * Revert pnpm-lock changes * Prevent rendering PDF files if the screenshot is not generated * refactor: replace useEffect with useMemo for section initialization * feat: show PDF file download button and handle large PDFs by defaulting to screenshot view * feat: add file size to openapi spec * feature: Add Assets preprocessing in fix mode to admin actions * i18n: add reprocess_assets_fix_mode translation * i18n: Add missing ar translations * A bunch of fixes * Fix openspec schema --------- Co-authored-by: Mohamed Bassem --- apps/web/lib/i18n/locales/ar/translation.json | 33 ++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'apps/web/lib/i18n/locales/ar') diff --git a/apps/web/lib/i18n/locales/ar/translation.json b/apps/web/lib/i18n/locales/ar/translation.json index 7bd0bcad..e9239e70 100644 --- a/apps/web/lib/i18n/locales/ar/translation.json +++ b/apps/web/lib/i18n/locales/ar/translation.json @@ -153,7 +153,7 @@ } }, "admin": { - "admin_settings": "إعدادات المدير", + "admin_settings": "إعدادات المشرف", "server_stats": { "server_stats": "إحصائيات الخادم", "total_users": "إجمالي المستخدمين", @@ -161,15 +161,36 @@ "server_version": "إصدار الخادم" }, "background_jobs": { - "background_jobs": "المهام التلقائية", + "background_jobs": "المهام الخلفية", "crawler_jobs": "مهام الاستكشاف", "indexing_jobs": "مهام الفهرسة", - "inference_jobs": "مهام التحليل الذكي", - "tidy_assets_jobs": "مهام تنظيم الملفات", + "inference_jobs": "مهام الاستدلال", + "tidy_assets_jobs": "مهام تنظيم الوسائط", "job": "مهمة", "queued": "في قائمة الانتظار", - "pending": "معلق", - "failed": "فشل" + "pending": "قيد الانتظار", + "failed": "فشلت" + }, + "actions": { + "recrawl_failed_links_only": "إعادة استكشاف الروابط الفاشلة فقط", + "recrawl_all_links": "إعادة استكشاف جميع الروابط", + "without_inference": "بدون استدلال", + "regenerate_ai_tags_for_failed_bookmarks_only": "إعادة إنشاء علامات الذكاء الاصطناعي للإشارات المرجعية الفاشلة فقط", + "regenerate_ai_tags_for_all_bookmarks": "إعادة إنشاء علامات الذكاء الاصطناعي لجميع الإشارات المرجعية", + "reindex_all_bookmarks": "إعادة فهرسة جميع الإشارات المرجعية", + "compact_assets": "ضغط الوسائط", + "reprocess_assets_fix_mode": "إعادة معالجة الوسائط (وضع الإصلاح)" + }, + "users_list": { + "users_list": "قائمة المستخدمين", + "create_user": "إنشاء مستخدم", + "change_role": "تغيير الدور", + "reset_password": "إعادة تعيين كلمة المرور", + "delete_user": "حذف المستخدم", + "num_bookmarks": "عدد الإشارات المرجعية", + "asset_sizes": "أحجام الوسائط", + "local_user": "مستخدم محلي", + "confirm_password": "تأكيد كلمة المرور" } }, "options": { -- cgit v1.2.3-70-g09d2