[translator] Epic: the next major — one traversal engine, four reshaped ports
Maintainer thường phản hồi trong vòng 1 ngày
@SearheiParkhamchuk đang làm issue này rồi.
Từ ngày 21/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Goal
The plugin's next major reshapes four public ports and replaces the translation mechanism with a single traversal engine the plugin no longer owns alone. The sequence, its dependencies and its stopping points are designed in packages/payload-plugin-translator/docs/plans/2026-10-18-the-rewiring.md §9. This issue tracks it.
Children are one per design step — the same unit the branch already works in, where each step is one branch and one pull request.
Order, and what each step cannot start before
step 2 ──┐
├──► K (kernel) ──┬──► languages ──┬──► S (the swap)
F1 ──────┤ │ │
└──► step 4 ──────┴──► step 5 ─────┘
│ ├──► step 6
│ └──► step 8 ──► step 9
└──► (stopping point)
- step 4 is the keystone: steps 5, 6, 8 and the swap all wait on it, and it needs F1 landed first, because step 4 publishes at the module seam the very field F1 corrects.
- K is the traversal kernel, built fresh and additive rather than by generalising the live pipeline in place. It replaces the original steps 3 and 7, which would have written the same files twice and contradicted the rule that the kernel ships zero languages.
- S is where the behavioural risk sits — selection, write-back and fingerprint values — and it keeps today's test suite as its oracle.
Stopping points
Two places where the work can be left standing:
- after step 4 — the inside is clean, provenance is an ordinary tenant, and nothing new is promised outside the package;
- after step 6 — every breaking change a host notices has landed.
Release discipline
Four steps change the public surface: 2, 5, 6 and 8. Each publishes a prerelease under the next dist-tag and is exercised in apps/cms against a real database before the next step starts. A step whose prerelease has not been run that way is not finished.
Hazards carried across steps
The swap must not be wired before the fingerprint projector emits embed-leaf addresses. computeFieldFingerprints reads projectTranslatableContent, which emits one entry per rich-text field and never descends into it, while Provenance.service.record iterates currentFields only. An address such as body.b1:cta.heading is therefore dropped today, and staleness.sameAddresses requires the stored and current key sets to be equal — so wiring the languages into record() first makes every provenance record permanently stale, with the symptom ("everything is out of date") sitting far from the cause.
Container mode for rich text and the public option carrying the embeddable block list are deferred by decision. They land with the swap, together with behaviour a consumer can see; a published option that does nothing is a lie in the README.
Strategy parity is unproven. The two-document checks behind the new languages hold under the overwrite strategy only, because that is what the differential harness drives. The question belongs to the swap, or is dissolved by the step that deletes the strategy port.
Children
Linked as sub-issues, so the progress bar is the record rather than a checklist somebody has to tick.
Landed
- #193 — remove the deprecations no later step owns (step 2 — #184, #186)
- #194 — a traversal kernel that ships no language (step K — #189, #190)
In review
- #195 — the Payload field and Lexical languages, and the crossing into embedded blocks (#191)
Next, and independent of everything else
- #196 — finish the deprecation sweep: the legacy OpenAI provider class is still exported
- #197 — report a leaf as attempted rather than as returned (gates #198)
The keystone, and what waits on it
- #198 — module extraction: provenance becomes an ordinary tenant (after #194 and #197 · stopping point)
- #199 — the swap: the translation pipeline moves onto the traversal engine (after #194 and #198)
- #48 — strategy out, selection in (after #198 · public surface)
- #200 — the runner port: narrow the mandatory core to enqueue (after #198 · public surface · stopping point)
- #201 — the provider port: two arguments, exceptions, declared capabilities (after #198 and #194 · public surface)
#202 — open the seam to hosts: export the module type and— moved out, see belowprovenance()(after #194 and #201 — the last step)
Not in this major
Opening the module seam to hosts (#202) was the last step of this epic and is not one any more.
No caller passes a host-written module and nothing asks for one — the three places that
configure the plugin all pass its own factories, which are already exported. Publishing
TranslationModule would publish the context it carries with it: access, the schema map, the
translation provider and the right to add endpoints. Two of its five questions were answered
by work that landed after it was written, and a third belongs to the 1.0 admin research.
Recorded in packages/payload-plugin-translator/docs/plans/2026-11-14-open-the-module-seam.md.
Re-extracting the traversal engine into its own package (#203) was a child of this epic and is
not one any more. Publishing the engine turns its interface — the address token, the entry
context — into a promise, and making that promise under this major's deadline is the risk the
epic exists to avoid rather than take on. The engine is held apart inside the package instead,
by a lint zone and a scan, which costs nothing and promises nothing. The extraction lands after
the major.
- Ngôn ngữ chính
- TypeScript
- Star
- 34
- Fork
- 5
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của focusreactive/payload-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
focusreactive/payload-plugins#279 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
focusreactive/payload-plugins#263 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comments, seo, analytics, and presets publish ESM that fails to load in Node.js (follow-up to #149)Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
focusreactive/payload-plugins#240 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
released released on @next
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
focusreactive/payload-plugins#210 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[translator] Re-extract the traversal engine into its own packageCó thể làm lại được @SearheiParkhamchuk đã nhận 41 ngày trước và không có pull request nào đang mở. Đang mởchore low priority translator
focusreactive/payload-plugins#203 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của focusreactive/payload-plugins
Issue tương tự
-
verified whatsapp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Feature: use a darkmode logoĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
openidconnect: option to use client_secret_post (client_id with "-" rejected by LemonLDAP::NG 2.21)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Amélioration du résumé regĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MTES-MCT/monitorenv#3257 ·
Maintainer thường phản hồi trong vòng 1 ngày