locale:"all" on payload.update #4760
Replies: 3 comments 6 replies
-
Hey @Utzel-Butzel! We are currently working on extending the localization features to allow updating multiple locales in one request. You can read more on that here. In the meanwhile, until these features are finished and released, you will need to perform a separate update for each locale. The plugin concept sounds awesome. There was another community plugin that I came across here, sharing incase it is helpful to you. Let me know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
For now when using multiple transactions with MongoDB Atlas or similar you need to disable
|
Beta Was this translation helpful? Give feedback.
-
I am trying to do the same here with payload 3.9.0 but each update removes the other locale from the data, does anyone know the right way to do this ? |
Beta Was this translation helpful? Give feedback.
-
Describe the Bug
I'm currently building a plugin for translating the content of a page via GPT and the most efficient way would be to update multiple languages at once. Do you may know if there is a way to achieve this or if I should work directly with the
mongooseAdapter
?The plugin: https://github.com/wirewirewirewire/payload-ai
This doesn't throw an error but also does not update the content.
Many thanks for building Payload! :)
To Reproduce
Any update using the local API with
locale="all"
set.The result will return the unchanged content, but the expected output would be:
Payload Version
2.6.2
Adapters and Plugins
localization
#3189
Beta Was this translation helpful? Give feedback.
All reactions