trypost/lang/ar/webhooks.php
Paulo Castellano 58d8e066b5
Add workspace webhooks and drop the unused automation webhook node (#326)
* Add workspace webhooks and drop the unused automation webhook node.

Give workspaces HMAC-signed outgoing webhooks for the post lifecycle, with retry, auto-pause, replay, and live logs, and keep HTTP Request as the only outbound automation node.

* Tighten webhook controller and validation after review.

Drop the redundant workspace redirects, prune logs without counting, and validate events/status with Rule::enum.

* Move leftover webhook UI copy behind i18n.

HTTP status phrases, delete-cancel, and validation attribute names were still English literals.

* Build the webhook-paused email through Maizzle.

The hand-written Blade skipped the shared layout, header, and footer used by the other mail templates.

* Cover real webhook dispatch paths and restyle the webhook pages.

* Ask for the shared delete keyword when confirming a webhook delete.

The endpoint URL is a poor confirm string; posts and assets already use the common "delete" keyword.

* Fix webhook review blockers so CI can go green.

Drop leftover French automation keys, stop mutating Inertia log props, and show delivered_at instead of created_at.

* Close the remaining webhook review gaps.

Keep Echo log updates across infinite scroll, align the channel with the policy, persist log ids across retries, and fail unknown automation nodes without throwing.

* Stop webhook delivery after disable and record last sent only on success.

Queued jobs now skip paused or disabled endpoints unless the user replays, and changing the URL re-pings it first.

* Limit webhooks to owners and admins, and encrypt signing secrets.

Members can no longer create or inspect outgoing integrations, and secrets stay encrypted at rest.

* Cover webhook secret hiding, skip-ping, and failed-delivery edges.

* Send the full post on webhooks after labels and platforms are saved.

* Fix webhook payloads for integer media ids and type webhook status.

* Split the webhook show page into focused components.

* Reset live webhook logs when switching endpoints.

* Keep the newest webhook logs at the top after live merges.

* Cast media item ids to string without the extra scalar check.

* Add post.unscheduled webhooks and put the log id on the envelope.

Unscheduling is now a first-class event, and receivers can send the delivery id back so we can find the matching log.

* Translate webhook event names in the UI.

* Make the webhook show page full-width and stop stacking flash toasts.

* Translate remaining webhook UI copy in every locale.

* Sign webhook pings and drop author email from the payload.

* Send signed webhook tests after create instead of pinging on save.

Create and update only block private URLs so the receiver can copy the secret first. The show page then sends a signed webhook.test with an object data envelope.

* Polish webhook test UX and always mint the dispatch log id in the job.

Keep send-test in the actions menu (its own group) and drop the leftover constructor param so retries reuse the serialized id instead of a caller-supplied one.
2026-09-04 09:43:29 -03:00

139 lines
6.7 KiB
PHP

<?php
declare(strict_types=1);
return [
'title' => 'Webhooks',
'description' => 'تلقَّ إشعارات فورية عند إنشاء المنشورات أو جدولتها أو إلغاء جدولتها أو نشرها أو فشلها.',
'new' => 'إنشاء ويب هوك',
'empty_title' => 'لا توجد ويب هوكس بعد',
'empty_description' => 'أنشئ ويب هوكًا لتلقي إشعارات الأحداث فور حدوثها.',
'table' => [
'endpoint' => 'Endpoint',
'events' => 'يستمع إلى',
'status' => 'الحالة',
'last_sent' => 'آخر إرسال',
],
'events_count' => '{1} حدث واحد|[2,*] :count أحداث',
'never' => 'أبدًا',
'status' => [
'enabled' => 'مفعّل',
'disabled' => 'معطّل',
'paused' => 'متوقف مؤقتًا',
],
'actions' => [
'view' => 'عرض التفاصيل',
'copy_id' => 'نسخ معرّف الويب هوك',
'delete' => 'حذف',
'edit' => 'تعديل الـ endpoint',
'enable' => 'تفعيل الـ endpoint',
'disable' => 'تعطيل الـ endpoint',
'rotate' => 'تدوير سر التوقيع',
'send_test' => 'إرسال حدث تجريبي',
'replay' => 'إعادة الإرسال',
'reveal_secret' => 'إظهار السر',
'hide_secret' => 'إخفاء السر',
'copy_secret' => 'نسخ السر',
],
'create' => [
'title' => 'إنشاء ويب هوك',
'description' => 'اضبط endpoint لتلقي إشعارات الويب هوك.',
'endpoint' => 'رابط الـ endpoint',
'endpoint_placeholder' => 'https://example.com/webhooks',
'events' => 'الأحداث',
'events_placeholder' => 'اختر الأحداث...',
'events_selected' => '{1} حدث واحد محدد|[2,*] :count أحداث محددة',
'search_events' => 'البحث في الأحداث...',
'no_events' => 'لم يُعثر على أحداث',
'submit' => 'إنشاء ويب هوك',
'cancel' => 'إلغاء',
],
'edit' => [
'title' => 'تعديل الـ endpoint',
'description' => 'حدّث رابط الـ endpoint والأحداث المطلوب الاستماع إليها.',
'submit' => 'حفظ التغييرات',
'cancel' => 'إلغاء',
],
'delete' => [
'title' => 'حذف الويب هوك',
'description' => 'هل تريد حذف هذا الويب هوك؟ لن تتلقى بعد الآن إشعارات الأحداث على هذا الـ endpoint.',
'confirm' => 'حذف الويب هوك',
'cancel' => 'إلغاء',
],
'rotate' => [
'title' => 'تدوير سر التوقيع',
'description' => 'سيُنشأ سر توقيع جديد. يتوقف السر الحالي عن العمل فورًا. حدّث الـ endpoint لاستخدام السر الجديد.',
'submit' => 'تدوير السر',
'cancel' => 'إلغاء',
],
'show' => [
'signing_secret' => 'سر التوقيع',
'last_sent' => 'آخر إرسال :time',
'listening_for' => 'يستمع إلى',
'http_status' => 'حالة HTTP',
'status_code' => ':code - :reason',
'attempts' => 'المحاولات',
'delivered_at' => 'سُلِّم في',
'response_body' => 'نص الاستجابة',
'response' => 'الاستجابة',
'no_response_body' => 'لا يوجد نص استجابة',
'no_response' => 'لا توجد استجابة',
'payload' => 'حمولة الرسالة',
'empty_title' => 'لا توجد أحداث بعد',
'empty_description' => 'عند إنشاء المنشورات أو جدولتها أو إلغاء جدولتها أو نشرها، ستظهر أحداث الويب هوك هنا.',
],
'events' => [
'group_posts' => 'المنشورات',
'post_created' => 'تم إنشاء المنشور',
'post_scheduled' => 'تمت جدولة المنشور',
'post_unscheduled' => 'ألغيت جدولة المنشور',
'post_published' => 'تم نشر المنشور',
'post_partially_published' => 'نُشر المنشور جزئيًا',
'post_failed' => 'فشل المنشور',
'post_deleted' => 'تم حذف المنشور',
],
'http_reasons' => [
'unknown' => 'غير معروف',
'200' => 'OK',
'201' => 'تم الإنشاء',
'202' => 'مقبول',
'204' => 'لا محتوى',
'400' => 'طلب غير صالح',
'401' => 'غير مصرّح',
'403' => 'محظور',
'404' => 'غير موجود',
'408' => 'انتهت مهلة الطلب',
'422' => 'كيان غير قابل للمعالجة',
'429' => 'طلبات كثيرة جدًا',
'500' => 'خطأ داخلي في الخادم',
'502' => 'بوابة غير صالحة',
'503' => 'الخدمة غير متاحة',
'504' => 'انتهت مهلة البوابة',
],
'copied' => [
'id' => 'تم نسخ معرّف الويب هوك إلى الحافظة',
'secret' => 'تم نسخ سر التوقيع إلى الحافظة',
'response' => 'تم نسخ نص الاستجابة',
'payload' => 'تم نسخ الحمولة',
],
'errors' => [
'endpoint_not_allowed' => 'هذا الـ endpoint غير مسموح به.',
'endpoint_unreachable' => 'الـ endpoint غير قابل للوصول.',
'endpoint_http_status' => 'أعاد الـ endpoint رمز HTTP :status.',
],
'flash' => [
'created' => 'تم إنشاء الويب هوك.',
'updated' => 'تم تحديث الويب هوك.',
'deleted' => 'تم حذف الويب هوك.',
'secret_rotated' => 'تم تدوير سر التوقيع.',
'replayed' => 'أُعيد إرسال حدث الويب هوك.',
'tested' => 'أُرسل الحدث التجريبي.',
],
'mail' => [
'paused_subject' => 'تم إيقاف الويب هوك مؤقتًا: :endpoint',
'paused_title' => 'أُوقف الويب هوك مؤقتًا بعد إخفاقات متكررة',
'paused_preview' => 'أوقفنا ويب هوكًا مؤقتًا بعد 5 إخفاقات تسليم متتالية.',
'paused_body' => 'أوقفنا الويب هوك على :endpoint مؤقتًا بعد 5 إخفاقات تسليم متتالية. راجع الـ endpoint وأعد تفعيله من صفحة تفاصيل الويب هوك.',
'paused_cta' => 'عرض الويب هوك',
],
];