Skip to content

[6.x] Multisite - make it clearer when globals have/haven't been translated - #15268

Open
jaygeorge wants to merge 4 commits into
multisite-globals-selectionfrom
multisite-is-it-translated
Open

[6.x] Multisite - make it clearer when globals have/haven't been translated#15268
jaygeorge wants to merge 4 commits into
multisite-globals-selectionfrom
multisite-is-it-translated

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Description of the Problem

When editing a multisite globals, it's not clear what's been translated and what hasn't.
It would be useful to tell at a glance which localizations still fully inherit vs which have local data.

This problem is reported here statamic/ideas#657
This, along with #15253, should close statamic/ideas#657

What this PR Does

  • Adds a synced icon on localizations that fully inherit from their origin (data() empty — same rule as field-level sync)
  • Shows Origin / Active / Root badges in the site dropdown options, as a helpful addition, like entries do
  • Refreshes the active localization’s synced state after save
  • Order globals localizations by configured site order so things match up. The stache order made site groups appear differently than on the configure page.

Before

What's been translated? It's not clear

2026-08-25 at 12 32 07@2x

After

It's now easy to understand which globals have been modified (they do not still have the sync icon), and we can clearly see the origin of the current global (as a side note, the group order here now also follows the config page)

2026-08-25 at 12 40 23@2x

How to Reproduce

  1. Open a multisite global with at least one localization that has an origin (e.g. /cp/globals/company)
  2. Open the site dropdown — Origin / Active / Root badges should appear like on entries
  3. Clear all localized field data on a child site and reload — that site should show the synced icon
  4. Store local values on that site again (even if they match the origin) — the synced icon should disappear

@jasonvarga
jasonvarga force-pushed the multisite-is-it-translated branch from 8f08b85 to a0a3057 Compare August 28, 2026 02:08
PHPStan could not resolve root \Log aliases, and the trans-import check
required use function Statamic\trans as __ in Entry.
Indicate fully synced localizations and Origin/Active/Root like entries,
keep the dropdown icon in sync while editing, order sites by sites.yaml,
and guard badge props as booleans for shared SiteSelector consumers.
@jasonvarga
jasonvarga force-pushed the multisite-is-it-translated branch from a0a3057 to 0d457c0 Compare August 28, 2026 02:42
Add the blank line before the Statamic trans import required by Pint
after cd04681 added the use function import for the trans-import check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant