Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: collection labels with locales not working when creating new doc #5995

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JessChowdhury
Copy link
Member

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:
Screenshot 2024-04-24 at 2 44 23 PM

After:
Screenshot 2024-04-24 at 2 43 52 PM

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Existing test suite passes locally with my changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When creating a record and the collection labels are localized, "document" shows instead of the singular label
1 participant