feat(14.2.1-03): add markdown and multilingual cabana fields

Lift locale maps before ProjectWritableFields so a Journal-shaped save can persist the default host scalar and non-default locales through TranslationWriter without dropping nested JSON.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-06 12:32:54 +02:00
parent 234111d245
commit a04116d41f
13 changed files with 895 additions and 3 deletions

View File

@@ -930,7 +930,13 @@ func (s *service) crud() (CRUDService, error) {
if err != nil {
return CRUDService{}, err
}
return CRUDService{DB: db, bucket: s.bucket(), tr: s.translator()}, nil
svc := CRUDService{DB: db, bucket: s.bucket(), tr: s.translator()}
if s.app != nil {
if w, ok := s.app.Lookup[TranslationWriter](); ok {
svc.writer = w
}
}
return svc, nil
}
func (s *service) list(w http.ResponseWriter, r *http.Request) {