feat(cms): English translation status with a public gate (MITHOME-113)

Every page global and legal page gets a shared "English translation
status" sidebar field (none / AI draft awaiting review / approved).
The content adapter reads through readGated(): an English page renders
English text only when its translation is approved, otherwise the
Hungarian text of the same page, while links keep resolving to /en/...

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 10:58:07 +02:00
co-authored by Claude Opus 5.5
parent 0eb6594acc
commit 32b6643fbc
12 changed files with 160 additions and 13 deletions
+2
View File
@@ -1,6 +1,7 @@
import type { CollectionConfig } from 'payload'
import { collectionVersions } from '../lib/payload-versions'
import { translationStatusField } from '../globals/fields/translationStatus'
/**
* Mirrors LegalPageContent (proto/src/content/types.ts) — MITHOME-88.
@@ -55,5 +56,6 @@ export const LegalPages: CollectionConfig = {
{ name: 'content', type: 'textarea', required: true, localized: true },
],
},
translationStatusField(),
],
}