payload
payload copied to clipboard
fix: collection labels with locales not working when creating new doc
Description
Closes #5992
When a collection has a label with more than one language, it is falling back to the default label (document) when creating a new document. It should show the correct label for the current locale.
labels: {
singular: {
de: 'test',
en: 'post',
},
},
Before:
After:
- [X] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
- [X] Bug fix (non-breaking change which fixes an issue)
Checklist:
- [X] Existing test suite passes locally with my changes