-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: adds versions.drafts.localizeStatus and allows unpublish per-locale #14667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
1ca91d8 to
405c563
Compare
…ocalize-metadata' into feat/experimental-localize-metadata
|
I cannot say anything about the code implementation itself, because I don't know payload internals, but from what I understand, this is a feature we would really want to have. Currently, when I publish a collection in English and never provide values for Spanish, for example, the payload REST/locale/SDK APIs treat the Spanish version as published as well. This happens even though the Payload UI clearly states “Publish in English” when I click the button. This is really confusing to me, to be honest. Well done 🙏 |
This PR introduces a new collection configuration option:
When enabled, the status of documents becomes localized, allowing each locale to track and manage its own publication status independently.
Key Changes
Added
versions.drafts.localizeStatusconfig option. When enabled:UI PR here