trypost/lang/ru/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
7.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
return [
'title' => 'Webhooks',
'description' => 'Получайте уведомления в реальном времени, когда посты создаются, планируются, снимаются с плана, публикуются или завершаются ошибкой.',
'new' => 'Создать вебхук',
'empty_title' => 'Вебхуков пока нет',
'empty_description' => 'Создайте вебхук, чтобы получать уведомления о событиях в реальном времени.',
'table' => [
'endpoint' => 'Endpoint',
'events' => 'Слушает',
'status' => 'Статус',
'last_sent' => 'Последняя отправка',
],
'events_count' => '{1} :count событие|[2,*] :count событий',
'never' => 'Никогда',
'status' => [
'enabled' => 'Включён',
'disabled' => 'Отключён',
'paused' => 'Приостановлен',
],
'actions' => [
'view' => 'Подробности',
'copy_id' => 'Скопировать ID вебхука',
'delete' => 'Удалить',
'edit' => 'Изменить endpoint',
'enable' => 'Включить endpoint',
'disable' => 'Отключить endpoint',
'rotate' => 'Сменить секрет подписи',
'send_test' => 'Отправить тестовое событие',
'replay' => 'Отправить снова',
'reveal_secret' => 'Показать секрет',
'hide_secret' => 'Скрыть секрет',
'copy_secret' => 'Скопировать секрет',
],
'create' => [
'title' => 'Создать вебхук',
'description' => 'Настройте endpoint для получения уведомлений вебхука.',
'endpoint' => 'URL endpoint',
'endpoint_placeholder' => 'https://example.com/webhooks',
'events' => 'События',
'events_placeholder' => 'Выберите события...',
'events_selected' => '{1} :count событие выбрано|[2,*] :count событий выбрано',
'search_events' => 'Поиск событий...',
'no_events' => 'События не найдены',
'submit' => 'Создать вебхук',
'cancel' => 'Отмена',
],
'edit' => [
'title' => 'Изменить endpoint',
'description' => 'Обновите URL 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' => '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' => 'ID вебхука скопирован в буфер обмена',
'secret' => 'Секрет подписи скопирован в буфер обмена',
'response' => 'Тело ответа скопировано',
'payload' => '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' => 'Открыть вебхук',
],
];