payload icon indicating copy to clipboard operation
payload copied to clipboard

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

Open jessrynkar opened this issue 1 year ago • 0 comments

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

  • [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

jessrynkar avatar Apr 24 '24 13:04 jessrynkar