trypost/lang/zh/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
5.3 KiB
PHP
Raw Permalink 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' => '创建 webhook',
'empty_title' => '还没有 webhook',
'empty_description' => '创建一个 webhook即可实时接收事件通知。',
'table' => [
'endpoint' => 'Endpoint',
'events' => '正在监听',
'status' => '状态',
'last_sent' => '上次发送',
],
'events_count' => '{1} :count 个事件|[2,*] :count 个事件',
'never' => '从未',
'status' => [
'enabled' => '已启用',
'disabled' => '已停用',
'paused' => '已暂停',
],
'actions' => [
'view' => '查看详情',
'copy_id' => '复制 webhook ID',
'delete' => '删除',
'edit' => '编辑 endpoint',
'enable' => '启用 endpoint',
'disable' => '停用 endpoint',
'rotate' => '轮换签名密钥',
'send_test' => '发送测试事件',
'replay' => '重新发送',
'reveal_secret' => '显示密钥',
'hide_secret' => '隐藏密钥',
'copy_secret' => '复制密钥',
],
'create' => [
'title' => '创建 webhook',
'description' => '配置一个 endpoint 以接收 webhook 通知。',
'endpoint' => 'Endpoint URL',
'endpoint_placeholder' => 'https://example.com/webhooks',
'events' => '事件',
'events_placeholder' => '选择事件...',
'events_selected' => '{1} 已选择 :count 个事件|[2,*] 已选择 :count 个事件',
'search_events' => '搜索事件...',
'no_events' => '未找到事件',
'submit' => '创建 webhook',
'cancel' => '取消',
],
'edit' => [
'title' => '编辑 endpoint',
'description' => '更新 endpoint URL 以及要监听的事件。',
'submit' => '保存更改',
'cancel' => '取消',
],
'delete' => [
'title' => '删除 webhook',
'description' => '确定要删除此 webhook 吗?此后你将不再在此 endpoint 收到事件通知。',
'confirm' => '删除 webhook',
'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' => '还没有 webhook 事件',
'empty_description' => '帖子被创建、排期、取消排期或发布后webhook 事件会显示在这里。',
],
'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' => '已将 webhook ID 复制到剪贴板',
'secret' => '已将签名密钥复制到剪贴板',
'response' => '已复制响应正文',
'payload' => '已复制 payload',
],
'errors' => [
'endpoint_not_allowed' => '不允许使用此 endpoint。',
'endpoint_unreachable' => '无法访问该 endpoint。',
'endpoint_http_status' => '该 endpoint 返回了 HTTP :status。',
],
'flash' => [
'created' => '已创建 webhook。',
'updated' => '已更新 webhook。',
'deleted' => '已删除 webhook。',
'secret_rotated' => '已轮换签名密钥。',
'replayed' => '已重新发送 webhook 事件。',
'tested' => '已发送测试事件。',
],
'mail' => [
'paused_subject' => 'Webhook 已暂停::endpoint',
'paused_title' => 'Webhook 因连续失败已暂停',
'paused_preview' => '连续 5 次投递失败后,我们暂停了一个 webhook。',
'paused_body' => '连续 5 次投递失败后,我们暂停了 :endpoint 上的 webhook。请检查该 endpoint并在 webhook 详情页重新启用。',
'paused_cta' => '查看 webhook',
],
];