140 lines
5.3 KiB
PHP
140 lines
5.3 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
return [
|
||
|
|
'title' => 'Webhooks',
|
||
|
|
'description' => 'Receive real-time notifications when posts are created, scheduled, unscheduled, published, or fail.',
|
||
|
|
'new' => 'Create webhook',
|
||
|
|
'empty_title' => 'No webhooks yet',
|
||
|
|
'empty_description' => 'Create a webhook to receive real-time event notifications.',
|
||
|
|
'table' => [
|
||
|
|
'endpoint' => 'Endpoint',
|
||
|
|
'events' => 'Listening for',
|
||
|
|
'status' => 'Status',
|
||
|
|
'last_sent' => 'Last sent',
|
||
|
|
],
|
||
|
|
'events_count' => '{1} :count event|[2,*] :count events',
|
||
|
|
'never' => 'Never',
|
||
|
|
'status' => [
|
||
|
|
'enabled' => 'Enabled',
|
||
|
|
'disabled' => 'Disabled',
|
||
|
|
'paused' => 'Paused',
|
||
|
|
],
|
||
|
|
'actions' => [
|
||
|
|
'view' => 'View details',
|
||
|
|
'copy_id' => 'Copy webhook ID',
|
||
|
|
'delete' => 'Delete',
|
||
|
|
'edit' => 'Edit endpoint',
|
||
|
|
'enable' => 'Enable endpoint',
|
||
|
|
'disable' => 'Disable endpoint',
|
||
|
|
'rotate' => 'Rotate signing secret',
|
||
|
|
'send_test' => 'Send test event',
|
||
|
|
'replay' => 'Replay',
|
||
|
|
'reveal_secret' => 'Reveal secret',
|
||
|
|
'hide_secret' => 'Hide secret',
|
||
|
|
'copy_secret' => 'Copy secret',
|
||
|
|
],
|
||
|
|
'create' => [
|
||
|
|
'title' => 'Create webhook',
|
||
|
|
'description' => 'Configure an endpoint to receive webhook notifications.',
|
||
|
|
'endpoint' => 'Endpoint URL',
|
||
|
|
'endpoint_placeholder' => 'https://example.com/webhooks',
|
||
|
|
'events' => 'Events',
|
||
|
|
'events_placeholder' => 'Select events...',
|
||
|
|
'events_selected' => '{1} :count event selected|[2,*] :count events selected',
|
||
|
|
'search_events' => 'Search events...',
|
||
|
|
'no_events' => 'No events found',
|
||
|
|
'submit' => 'Create webhook',
|
||
|
|
'cancel' => 'Cancel',
|
||
|
|
],
|
||
|
|
'edit' => [
|
||
|
|
'title' => 'Edit endpoint',
|
||
|
|
'description' => 'Update the webhook endpoint URL and events to listen for.',
|
||
|
|
'submit' => 'Save changes',
|
||
|
|
'cancel' => 'Cancel',
|
||
|
|
],
|
||
|
|
'delete' => [
|
||
|
|
'title' => 'Delete webhook',
|
||
|
|
'description' => 'Are you sure you want to delete this webhook? You will no longer receive event notifications at this endpoint.',
|
||
|
|
'confirm' => 'Delete webhook',
|
||
|
|
'cancel' => 'Cancel',
|
||
|
|
],
|
||
|
|
'rotate' => [
|
||
|
|
'title' => 'Rotate signing secret',
|
||
|
|
'description' => 'This will generate a new signing secret. The current secret will stop working immediately. Make sure to update your endpoint to use the new secret.',
|
||
|
|
'submit' => 'Rotate secret',
|
||
|
|
'cancel' => 'Cancel',
|
||
|
|
],
|
||
|
|
'show' => [
|
||
|
|
'signing_secret' => 'Signing secret',
|
||
|
|
'last_sent' => 'Last sent :time',
|
||
|
|
'listening_for' => 'Listening for',
|
||
|
|
'http_status' => 'HTTP status',
|
||
|
|
'status_code' => ':code - :reason',
|
||
|
|
'attempts' => 'Attempts',
|
||
|
|
'delivered_at' => 'Delivered at',
|
||
|
|
'response_body' => 'Response body',
|
||
|
|
'response' => 'Response',
|
||
|
|
'no_response_body' => 'No response body',
|
||
|
|
'no_response' => 'No response',
|
||
|
|
'payload' => 'Message payload',
|
||
|
|
'empty_title' => 'No webhook events yet',
|
||
|
|
'empty_description' => 'Once posts are created, scheduled, unscheduled, or published, you will see the webhook events here.',
|
||
|
|
],
|
||
|
|
'events' => [
|
||
|
|
'group_posts' => 'Posts',
|
||
|
|
'post_created' => 'Post created',
|
||
|
|
'post_scheduled' => 'Post scheduled',
|
||
|
|
'post_unscheduled' => 'Post unscheduled',
|
||
|
|
'post_published' => 'Post published',
|
||
|
|
'post_partially_published' => 'Post partially published',
|
||
|
|
'post_failed' => 'Post failed',
|
||
|
|
'post_deleted' => 'Post deleted',
|
||
|
|
],
|
||
|
|
'http_reasons' => [
|
||
|
|
'unknown' => 'Unknown',
|
||
|
|
'200' => 'OK',
|
||
|
|
'201' => 'Created',
|
||
|
|
'202' => 'Accepted',
|
||
|
|
'204' => 'No Content',
|
||
|
|
'400' => 'Bad Request',
|
||
|
|
'401' => 'Unauthorized',
|
||
|
|
'403' => 'Forbidden',
|
||
|
|
'404' => 'Not Found',
|
||
|
|
'408' => 'Request Timeout',
|
||
|
|
'422' => 'Unprocessable Entity',
|
||
|
|
'429' => 'Too Many Requests',
|
||
|
|
'500' => 'Internal Server Error',
|
||
|
|
'502' => 'Bad Gateway',
|
||
|
|
'503' => 'Service Unavailable',
|
||
|
|
'504' => 'Gateway Timeout',
|
||
|
|
],
|
||
|
|
'copied' => [
|
||
|
|
'id' => 'Webhook ID copied to clipboard',
|
||
|
|
'secret' => 'Signing secret copied to clipboard',
|
||
|
|
'response' => 'Response body copied',
|
||
|
|
'payload' => 'Payload copied',
|
||
|
|
],
|
||
|
|
'errors' => [
|
||
|
|
'endpoint_not_allowed' => 'This endpoint is not allowed.',
|
||
|
|
'endpoint_unreachable' => 'The endpoint is not reachable.',
|
||
|
|
'endpoint_http_status' => 'The endpoint returned HTTP :status.',
|
||
|
|
],
|
||
|
|
'flash' => [
|
||
|
|
'created' => 'Webhook created.',
|
||
|
|
'updated' => 'Webhook updated.',
|
||
|
|
'deleted' => 'Webhook deleted.',
|
||
|
|
'secret_rotated' => 'Signing secret rotated.',
|
||
|
|
'replayed' => 'Webhook event replayed.',
|
||
|
|
'tested' => 'Test event sent.',
|
||
|
|
],
|
||
|
|
'mail' => [
|
||
|
|
'paused_subject' => 'Webhook paused: :endpoint',
|
||
|
|
'paused_title' => 'Webhook paused after repeated failures',
|
||
|
|
'paused_preview' => 'We paused a webhook after 5 consecutive delivery failures.',
|
||
|
|
'paused_body' => 'We paused the webhook at :endpoint after 5 consecutive delivery failures. Review the endpoint and re-enable it from the webhook details page.',
|
||
|
|
'paused_cta' => 'View webhook',
|
||
|
|
],
|
||
|
|
];
|