Skip to content

feat: support new all locales spec [TOL-3944]#2154

Merged
Yves Rijckaert (YvesRijckaert) merged 1 commit intomasterfrom
TOL-3944-2
May 6, 2026
Merged

feat: support new all locales spec [TOL-3944]#2154
Yves Rijckaert (YvesRijckaert) merged 1 commit intomasterfrom
TOL-3944-2

Conversation

@YvesRijckaert
Copy link
Copy Markdown
Contributor

@YvesRijckaert Yves Rijckaert (YvesRijckaert) commented May 6, 2026

Description

Adding * to the ReleaseV2LocaleFields union

Explanation

A ReleaseV2Props.entities.items entry is either a ReleaseV2Entity (entry-based) or a ReleaseV2EntityWithLocales (locale-based):

1. Entry-based (ReleaseV2Entity)

{
  "entity": { "sys": { "type": "Link", "linkType": "Entry", "id": "abc" } },
  "action": "publish" | "unpublish"
}

2. Locale-based (ReleaseV2EntityWithLocales)

Each of add and remove can independently be one of three shapes:

a) All locales (wildcard)

{
  "entity": { "sys": { "type": "Link", "linkType": "Entry", "id": "abc" } },
  "add": "*",
  "remove": "*"
}

b) Explicit locale list

{
  "entity": { "sys": { "type": "Link", "linkType": "Entry", "id": "abc" } },
  "add": ["en-US", "de-DE"],
  "remove": ["fr-FR"]
}

c) Fields object (locales for all fields)

{
  "entity": { "sys": { "type": "Link", "linkType": "Entry", "id": "abc" } },
  "add": { "fields": { "*": ["en-US", "de-DE"] } },
  "remove": { "fields": { "*": ["fr-FR"] } }
}

The linkType can be "Entry" | "Asset" | "Fragment" | "Experience" in all cases.

@YvesRijckaert Yves Rijckaert (YvesRijckaert) requested a review from a team as a code owner May 6, 2026 10:00
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
field-editors Ready Ready Preview May 6, 2026 10:19am

Request Review

@YvesRijckaert Yves Rijckaert (YvesRijckaert) added this pull request to the merge queue May 6, 2026
Merged via the queue into master with commit 2734610 May 6, 2026
17 checks passed
@YvesRijckaert Yves Rijckaert (YvesRijckaert) deleted the TOL-3944-2 branch May 6, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants