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:
co-authored by
Claude Opus 5.5
parent
0eb6594acc
commit
32b6643fbc
@@ -2,6 +2,7 @@ import type { GlobalConfig } from 'payload'
|
||||
|
||||
import { stringArrayField } from './fields/stringArray'
|
||||
import { globalVersions } from '../lib/payload-versions'
|
||||
import { translationStatusField } from './fields/translationStatus'
|
||||
|
||||
/** Mirrors ServicesPageContent (proto/src/content/types.ts) — MITHOME-87. */
|
||||
export const Services: GlobalConfig = {
|
||||
@@ -80,5 +81,6 @@ export const Services: GlobalConfig = {
|
||||
{ name: 'secondaryButton', type: 'text', required: true, localized: true },
|
||||
],
|
||||
},
|
||||
translationStatusField(),
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user