NouanceLabs / payload-better-fields-plugin

This plugin aims to provide you with very specific and improved fields for the Payload admin panel.
MIT License
124 stars 2 forks source link

localized labels not working #72

Closed carstenblt closed 3 months ago

carstenblt commented 3 months ago

When I am using a SlugField like

...SlugField(
      {
        name: "slug",
        label: {
          en: "Path",
          de: "Pfad",
        },
      },
      {
        useFields: ["title"],
      },
    ),

the label is not shown correctly. It just shows "S" as the label. Using

label: "Path"

works correctly.

paulpopus commented 3 months ago

Hey I just cut a fix particularly for this, there's a bigger issue with the deepMerge utility for me to look at down the line but for now this should work