Skip to content

chore(i18n): refresh landing-page source digests to unblock i18n-lint - #689

Closed
IvanHunters wants to merge 1 commit into
mainfrom
fix/i18n-index-digests
Closed

IvanHunters wants to merge 1 commit into
mainfrom
fix/i18n-index-digests

Conversation

@IvanHunters

@IvanHunters IvanHunters commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

What

Refreshes the recorded source_digest on the four translated landing pages (content/de|hi|ru|zh-cn/_index.md) to the current digest of content/en/_index.md.

Why

content/en/_index.md gained a Live Demo section in 480d6da without refreshing the translation digests. Since then i18n-lint fails on main and on every PR that touches content/ (e.g. #672), reporting the four landing pages as stale. This clears the freshness gate.

Scope

Digest-only: the diff is a single source_digest line per file, nothing else. hack/check-i18n.sh passes after the change (translation freshness: OK).

This does not re-translate the new Live Demo block into de/hi/ru/zh-cn; those home pages still need it. This only unblocks CI so that translation can be done separately.

Summary by CodeRabbit

  • Documentation
    • Updated source tracking metadata for the German, Hindi, Russian, and Chinese landing pages.

content/en/_index.md gained a Live Demo section in 480d6da without refreshing
the translation digests, so i18n-lint fails on main and on every PR that touches
content/. This records the current English digest on the de/hi/ru/zh-cn landing
pages so the freshness gate passes again.

This does not re-translate the new section: the de/hi/ru/zh-cn home pages still
need the Live Demo block; this only clears the stale-digest gate so CI is green
while that translation is done separately.

Signed-off-by: IvanHunters <[email protected]>
@netlify

netlify Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 42880c3
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6a9f096a09d5720008de7342
😎 Deploy Preview https://deploy-preview-689--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 73ef8d25-d576-4119-a1c4-496dc185f448

📥 Commits

Reviewing files that changed from the base of the PR and between 257bbbb and 42880c3.

📒 Files selected for processing (4)
  • content/de/_index.md
  • content/hi/_index.md
  • content/ru/_index.md
  • content/zh-cn/_index.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Four localized index pages update their source_digest front-matter value to the new SHA-256 digest. No other content changes.

Changes

Localization digest updates

Layer / File(s) Summary
Update localized source digests
content/de/_index.md, content/hi/_index.md, content/ru/_index.md, content/zh-cn/_index.md
The localized index pages now use the updated source_digest metadata value.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 42880

This updates source-digest metadata for four localized landing pages so they track the current English page and pass localization freshness checks. No user-facing content or runtime behavior changes, and the change is ready to merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the digest updates and their purpose of unblocking i18n-lint. It matches the pull request changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/i18n-index-digests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOT LGTM: this records the four landing pages as current translations of an English page that gained a section they do not have.

Business context: i18n-lint has been red on main and on every content PR since 480d6daa, for a break none of them caused (#652).

Blockers

  1. 480d6daa added a section to content/en/_index.md: a section-live-demo block with a heading, a paragraph and a /demo/ call to action (content/en/_index.md:79-88). The de/hi/ru/zh-cn pages carry the same shortcodes in the same order and each one runs straight from home/screenshot-gallery to home/benefits. These are transcreations, so divergence can be deliberate, but here the block just is not there. They also keep translation_status: current, which this PR leaves alone.

    hack/check-i18n.sh is the only thing in the repo that reads source_digest, and there is no re-translation tooling, so once the digest matches nothing records the gap. check-i18n.sh:137 says "refresh the translation, then run 'hack/check-i18n.sh update-digests'", and #652 reserves the digest-only path for an English edit cosmetic enough not to affect the translated text. This one added content.

    The block is eleven lines and the four pages already have the surrounding shortcodes in place, so a transcreated Live Demo section in each is about the size of this diff. Refresh the digests after that. If the translation has to wait, file the tracking issue now and take translation_status off current, so the gap lives in the tree instead of only in this thread.

Follow-ups, not blocking

  • Worth linking #652 from the PR body. Either way only half of it closes.
  • update-digests with no arguments re-stamps every page carrying a source_digest from the current English source and never checks that the translation moved (check-i18n.sh:144-165). That is what makes a one-line green possible, and it will get reached for again. An update mode limited to pages the working tree changed would close it.
  • Also pre-existing: translated_digest_files matches ^source_digest: over the whole file (check-i18n.sh:64-66) and update_digests rewrites the first hit wherever it sits, so a future page documenting the i18n pipeline with a column-zero source_digest: inside a fence gets selected and rewritten. Nothing in the tree hits this today.

Comment thread content/de/_index.md
description: "Open-Source-Cloud-Plattform auf Kubernetes für Managed VMs, Datenbanken, S3-Storage und GPU-Workloads. CNCF-Sandbox-Projekt."
keywords: ["private cloud", "managed kubernetes", "kubernetes plattform", "open source cloud"]
source_digest: "sha256:24e38da4716b93c35dcb9eb607152d193ef3d5ad42c0e22a25063a89da9f8dde"
source_digest: "sha256:e8f982c2431355bc79d3bb2133781cc539553c4c0a293d36e4c23dc54e7fcf80"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The English page gained a section-live-demo block in 480d6daa (content/en/_index.md:79-88) and this page still goes from home/screenshot-gallery to home/benefits. Recording the new digest marks it current while the section is missing, and check-i18n.sh is the only thing tracking that. Same for hi, ru and zh-cn.

@lexfrei

Copy link
Copy Markdown
Contributor

Superseded: the translations were refreshed on main instead, i18n-lint is green again without the digest bump.

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.

2 participants