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

How to use i18n? #76

Open CherryDT opened 2 months ago

CherryDT commented 2 months ago

I'm trying to put correct texts for the message in an alert box for the currently selected language.

Passing an object with the different translations (like I would do it with regular labels, descriptions, etc. in the config) does not work and fails with "Objects are not valid as a React child (found: object with keys {de, en}). If you meant to render a collection of children, use an array instead.".

How can it by done?

paulpopus commented 2 months ago

That's not supported right now but I can certainly add it as a feature!