|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * SPDX-License-Identifier: MIT |
| 5 | + * Copyright (c) 2017-2018 Tobias Reich |
| 6 | + * Copyright (c) 2018-2026 LycheeOrg. |
| 7 | + */ |
| 8 | + |
| 9 | +return [ |
| 10 | + /* |
| 11 | + |-------------------------------------------------------------------------- |
| 12 | + | Webhook admin page |
| 13 | + |-------------------------------------------------------------------------- |
| 14 | + */ |
| 15 | + |
| 16 | + 'title' => 'Webhooks', |
| 17 | + 'description' => 'Configure outgoing webhooks that are triggered when photos are added, moved, or deleted.', |
| 18 | + |
| 19 | + // Empty state |
| 20 | + 'no_webhooks' => 'No webhooks configured yet.', |
| 21 | + 'create_first' => 'Create your first webhook', |
| 22 | + |
| 23 | + // Table columns |
| 24 | + 'col_name' => 'Name', |
| 25 | + 'col_event' => 'Event', |
| 26 | + 'col_method' => 'Method', |
| 27 | + 'col_url' => 'URL', |
| 28 | + 'col_format' => 'Format', |
| 29 | + 'col_enabled' => 'Enabled', |
| 30 | + 'col_actions' => 'Actions', |
| 31 | + |
| 32 | + // Event labels |
| 33 | + 'event_photo_add' => 'Photo Added', |
| 34 | + 'event_photo_move' => 'Photo Moved', |
| 35 | + 'event_photo_delete' => 'Photo Deleted', |
| 36 | + |
| 37 | + // Payload format labels |
| 38 | + 'format_json' => 'JSON', |
| 39 | + 'format_query_string' => 'Query String', |
| 40 | + |
| 41 | + // Buttons |
| 42 | + 'create' => 'Create Webhook', |
| 43 | + 'edit' => 'Edit', |
| 44 | + 'delete' => 'Delete', |
| 45 | + 'cancel' => 'Cancel', |
| 46 | + 'save' => 'Save', |
| 47 | + |
| 48 | + // Form fields |
| 49 | + 'field_name' => 'Name', |
| 50 | + 'field_name_placeholder' => 'e.g. My Webhook', |
| 51 | + 'field_event' => 'Event', |
| 52 | + 'field_method' => 'HTTP Method', |
| 53 | + 'field_url' => 'URL', |
| 54 | + 'field_url_placeholder' => 'https://example.com/hook', |
| 55 | + 'field_format' => 'Payload Format', |
| 56 | + 'field_enabled' => 'Enabled', |
| 57 | + 'field_secret' => 'Secret', |
| 58 | + 'field_secret_placeholder' => 'Leave empty to keep existing secret', |
| 59 | + 'field_secret_header' => 'Secret Header', |
| 60 | + 'field_secret_header_placeholder' => 'X-Webhook-Secret', |
| 61 | + 'field_send_photo_id' => 'Send Photo ID', |
| 62 | + 'field_send_album_id' => 'Send Album ID', |
| 63 | + 'field_send_title' => 'Send Title', |
| 64 | + 'field_send_size_variants' => 'Send Size Variants', |
| 65 | + |
| 66 | + // Modal titles |
| 67 | + 'modal_create_title' => 'Create Webhook', |
| 68 | + 'modal_edit_title' => 'Edit Webhook', |
| 69 | + |
| 70 | + // Delete confirmation |
| 71 | + 'confirm_delete_header' => 'Delete Webhook', |
| 72 | + 'confirm_delete_message' => 'Are you sure you want to delete the webhook ":name"? This action cannot be undone.', |
| 73 | + 'delete_warning' => 'This action cannot be undone.', |
| 74 | + |
| 75 | + // Toasts |
| 76 | + 'created' => 'Webhook created successfully.', |
| 77 | + 'updated' => 'Webhook updated successfully.', |
| 78 | + 'deleted' => 'Webhook deleted successfully.', |
| 79 | + 'error_load' => 'Failed to load webhooks.', |
| 80 | + 'error_save' => 'Failed to save webhook.', |
| 81 | + 'error_delete' => 'Failed to delete webhook.', |
| 82 | + |
| 83 | + // Secret badge |
| 84 | + 'has_secret' => 'Secret set', |
| 85 | + 'no_secret' => 'No secret', |
| 86 | +]; |
0 commit comments