How can I provide data for all locales when using
payload.create
?
title
is normally a string.. Do I have to make two API calls (one create and one update)?
Or is something like this possible:
payload.create({
collection: 'pages',
data: {
title: {en: ..., es: ...},
}
});
This isn't currenlty possible with the existing APIs.
For now you have to create in one locale and then perform a separate update for each locale.
At some point this will need to be built into Payload.
thanks! 🙂
I want this too!
Noted!
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.