feat(14.2.1-06): persist nested ML maps on relation-child create

RelationService looks up TranslationWriter like CRUDService so CreateChild can lift locale maps before fillChild, write Polish after the child PK, and return a hydrated title map.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-06 15:51:38 +02:00
parent f4bea33faf
commit 88a3a88876
5 changed files with 225 additions and 6 deletions

View File

@@ -186,9 +186,11 @@ type RelationService struct {
SessionKey string
// bucket deletes the blobs of child files a save removes, after commit;
// tr localizes date bound messages. Both may be nil.
// tr localizes date bound messages. Both may be nil. writer is the same
// optional plugin adapter CRUDService uses for mltext/mlmarkdown.
bucket *blob.Bucket
tr *phrasebook.Translator
writer TranslationWriter
}
func (s RelationSchema) MarshalJSON() ([]byte, error) {