chore: tend to allium spec to align with code
This commit is contained in:
@@ -64,13 +64,16 @@ entity PostTranslation {
|
||||
}
|
||||
}
|
||||
|
||||
invariant TranslationFilesStoreOnlyLanguageSpecificMetadata {
|
||||
-- Translation markdown files persist only fields that differ by language.
|
||||
-- Shared metadata such as publication status and timestamps belongs to the
|
||||
-- canonical post file and is inherited from the canonical post when
|
||||
-- rebuilding or diffing translation files.
|
||||
invariant TranslationFilesCarryFullMetadata {
|
||||
-- Translation markdown files include status and timestamps alongside
|
||||
-- language-specific fields. This allows each translation to be rebuilt
|
||||
-- independently. On rebuild, missing fields fall back to canonical post
|
||||
-- values for compatibility with legacy files.
|
||||
for t in PostTranslations where file_path != "":
|
||||
translation_file(t).omits_shared_metadata = true
|
||||
translation_file(t).has_fields(
|
||||
id, translation_for, language, title, excerpt?,
|
||||
status, created_at, updated_at, published_at
|
||||
)
|
||||
}
|
||||
|
||||
surface PostTranslationSurface {
|
||||
|
||||
Reference in New Issue
Block a user