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.".
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?