feat(core): add localization completeness checks (#73)#139
Merged
Conversation
Adds opt-in checks.localization. Groups published documents by a translation key (groupField, default document.uid) scoped per content type, and emits CMS-LOCALE-MISSING (warning) for any group that is not published in every configured locale. Only published documents count, so a translation that exists only as a draft is reported as missing. Adapter-agnostic: locale and group key are read from document.data via configurable paths, so no per-adapter changes are needed. Adds a localization check group for --only / --skip and a localization group in the HTML report and JUnit output.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #73.
What
Adds opt-in
checks.localization:Groups published documents by
${type}:${groupKey}and emitsCMS-LOCALE-MISSINGfor any group not published in every configured locale.Behavior
groupFielddefaults todocument.uid(common when locales share a slug); override it for setups that link translations by a shared id.typesnarrows further.document.data, no per-adapter changes. Adds alocalizationcheck group for--only/--skipand alocalizationgroup in HTML/JUnit output.Why
Locale parity is on the 2026 headless-SEO checklist and was a tracked feature request. A page published in one locale but missing in another is a silent gap that hurts international SEO and UX.
How verified
--skip localizationrespected.locales).pnpm verifygreen (213 tests).Refs improvements/36.