Limit automatic translation to manual saves

This commit is contained in:
2026-07-22 18:11:09 +02:00
parent 556d9c1ff4
commit 2dcaf7f7f7
4 changed files with 21 additions and 8 deletions

View File

@@ -196,7 +196,7 @@ invariant FtsIncludesTranslations {
--
-- Two entry points share one translation primitive:
-- 1. ScheduleAutoTranslation - reactive, fired only by an explicit manual
-- save (or publish) in the post editor — never by post creation or
-- save in the post editor — never by publish, post creation, or
-- auto-save. One background task per missing language produces a DRAFT
-- translation, then cascades to the post's linked media.
-- 2. FillMissingTranslations - batch maintenance action. Scans every
@@ -215,8 +215,8 @@ surface AutoTranslationControlSurface {
provides:
-- Reactive trigger: emitted only when a post is updated with
-- auto_translate enabled (the editor's manual save/publish path);
-- post creation and auto-save never emit it.
-- auto_translate enabled (the editor's manual save path); publish,
-- post creation, and auto-save never emit it.
PostSavedForAutoTranslation(post)
-- Batch trigger: "fill missing translations" maintenance action.
FillMissingTranslationsRequested(project)