You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to save the posts/_index file via CMS, it will produce an empty commit. If you add posts/_index.sl.md, the commit will save changes as expected.
martinjagodic
changed the title
Empty commit with i18n + nested and missing a language file
Empty commit with i18n + nested collections (when missing a language file)
Jan 31, 2025
In a nested collection that uses i18n, an entry is not saved if it's missing a language.
Consider the below structure for example. Note that posts is missing
_index.sl.md
.Corresponding config
If you try to save the posts/_index file via CMS, it will produce an empty commit. If you add
posts/_index.sl.md
, the commit will save changes as expected.I stumbled upon this bug years ago and posted it on Netlify Forums, but the post is now deleted. Thanks to the Internet Archive, we have a snapshot version: https://web.archive.org/web/20221207001621/https://answers.netlify.com/t/changes-to-entries-saved-in-the-ui-but-commit-is-empty/34954
The text was updated successfully, but these errors were encountered: